Relative Content

Tag Archive for cypress

Cypress intercept best practice

I have some tests whereby in different It I intercept some routes and in some functions as well I intercept the same route and I find that there is a lot of duplication of the same thing.

I am unable to interact with the element that opens on another page

`When I click on the Treasury button, Cypress calls another page that is opened outside the execution environment. If I don’t use visit I can’t interact with the element. I don’t want to use visit, if I just use .invoke(‘removeAttr’, ‘target’) without visit, cyprees doesn’t work.

Getting 404 in Cypress test

I’m getting started with Cypress but I got stuck at the “hello world” of it ! I’m trying to open a page, first it worked like a charm, then all of a sudden the webstie started giving 404 page, no changes made to the test file.