-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Closed as not planned
Labels
Description
Current behavior
In the following test case, firstRoute is not getting overridden by secondRoute, i.e cypress should wait for secondRoute .
Following is the reference screenshot for using cy.intercept()
Desired behavior
In the following test case, firstRoute has to be overridden by secondRoute, i.e cypress should wait for secondRoute .
Following is the reference screenshot for using cy.route()
Test code to reproduce
describe('cy.intercept', () => {
it('> cy.route overidding', () => {
cy.intercept('POST', '**/analytics/3.0/results').as('firstRoute')
cy.intercept('POST', '**/analytics/3.0/results').as('secondRoute')
cy.visit('/signup')
cy.wait('@secondRoute')
cy.contains('button', 'Teacher').should('be.visible')
})
})
baseUrl: https://www.khanacademy.org/
Cypress Version
9.5.0, 9.0.0, 7.2.0, 7.0.0
Other
No response