Hi, one question I have a URL xx/0/xy and in my test I have to check the duration of an element, in the URL from xx/0/xy to xx/1000/xy how can I automate this, without having to write them separately like this? it("0", () =>{ cy.visit('/xx/0/xy') cy.checkelement() }) it("1", () =>{ cy.visit('/xx/1/xy') cy.checkelement() }) it("2", () =>{ cy.visit('/xx/2/xy') cy.checkelement() }) .... Repeat cy.visit('/xx/1000/xy') which I would separate into two parts the first one an assertion to check the URL which has to be in increment 0,1...1000 and the second one every time the URL is modified automatically that the cy.checkelement() command is performed. I would really appreciate it if you could help me with this problem. Thanks a lot
Great job. very clear explanation.
Thank you very much! Keep watching and sharing.
Thank you for this series! I just got a new Project where I need to build a new Cyoress automation framework
Glad it was helpful! Keep watching and sharing.
Hi, one question I have a URL xx/0/xy and in my test I have to check the duration of an element, in the URL from xx/0/xy to xx/1000/xy how can I automate this, without having to write them separately like this?
it("0", () =>{
cy.visit('/xx/0/xy')
cy.checkelement()
})
it("1", () =>{
cy.visit('/xx/1/xy')
cy.checkelement()
})
it("2", () =>{
cy.visit('/xx/2/xy')
cy.checkelement()
})
.... Repeat cy.visit('/xx/1000/xy')
which I would separate into two parts the first one an assertion to check the URL which has to be in increment 0,1...1000 and the second one every time the URL is modified automatically that the cy.checkelement() command is performed.
I would really appreciate it if you could help me with this problem.
Thanks a lot