I am trying to automate a web application where I have a login page- eg-
test.webapplication.com.
After successful login, the url changes and it becomes something like
mycm.home.site.com.
I am not able to achieve this with cypress within one test. After login, the cypress runner disappears and the test don't go further to execute. Is there any solution for this?
Added more description-
before login-
it('Login', function()
cy.visit('loginurl') cy.get("#username").type("username") cy.get("#password").type("password") cy.get("#Login").click() //here, after login url is getting changed
So, below action will happen on a new url(homepage), but cypress runner closes because the url is changing after login, hence not able to proceed After login-
cy.get("#firstfield").type("abc)
cy.get("#secondfield").type("xyz)