Your videos are very useful , thanks for that , Just a suggestion , Please use Mic based headphone ,since while you are explain some topics sometime you are saying some words very slow and its hard to catch while watching videos
I thought .contains was just basically searching for something but I see in this video you use it to wait for that something to be there. It's weird because what if the thing is not there. so how can you depend on the .contains
Please read about built-in retryability in Cypress queries on.cypress.io/retryability and for more examples see glebbahmutov.com/cypress-examples/recipes/retry-ability.html
Why get an element and create an alias just to get it and wrap back to click? Either just get and click or find more things to check to ensure the application has finished loading before clicking
@@gleb cy.intercept('GET",'**/abc').as('element') cy.wait('@element').then((el)=>{ cy.wrap('el').click() // here give dom element is detached after just running })
Your test makes no sense. You are intercepting a network call and then click on it? Please read Cypress documentation docs.cypress.io/ and maybe on.cypress.io/intercept and on.cypress.io/network-requests
@bahutmov these videos are great... I wish I had discovered them sooner. For some reason I spend way too much time banging my head against walls. I should just watch more TH-cam ;)
Your videos are very useful , thanks for that ,
Just a suggestion ,
Please use Mic based headphone ,since while you are explain some topics sometime you are saying some words very slow and its hard to catch while watching videos
yeah, it is weird. I use the same headphones, but the sound today really is different, who knows why
hello sir. I wonder if there is a way to rerun test soon after cy.intercept timeout error. thank you
Using test retries?
Great video! Thanks!
I thought .contains was just basically searching for something but I see in this video you use it to wait for that something to be there. It's weird because what if the thing is not there. so how can you depend on the .contains
Please read about built-in retryability in Cypress queries on.cypress.io/retryability and for more examples see glebbahmutov.com/cypress-examples/recipes/retry-ability.html
when we use in if condition they're required to first wrap element. I use to
wait but they do not work. pls, help me how to do.
I am not sure how to help you without full information
@@gleb
cy.get('css').as('element')
cy.wait('@element').then((el)=>{
cy.wrap('el').click() // here give dom element is detached after just running
})
Why get an element and create an alias just to get it and wrap back to click? Either just get and click or find more things to check to ensure the application has finished loading before clicking
@@gleb cy.intercept('GET",'**/abc').as('element')
cy.wait('@element').then((el)=>{
cy.wrap('el').click() // here give dom element is detached after just running
})
Your test makes no sense. You are intercepting a network call and then click on it? Please read Cypress documentation docs.cypress.io/ and maybe on.cypress.io/intercept and on.cypress.io/network-requests
@bahutmov these videos are great... I wish I had discovered them sooner. For some reason I spend way too much time banging my head against walls. I should just watch more TH-cam ;)
Yup, and you can search videos by title and description from cypress.tips/search