Cypress v6.1.0
describe('intercept', () => {
Cypress.Commands.overwrite('intercept', (intercept, ...args) => {
return cy.log('intercept!').then(() => {
return intercept(...args)
})
})
it('is registered too late', () => {
cy.visit('/')
cy.intercept('/todos').as('todos')
cy.wait('@todos')
})
})
The alias todos is not recognized, but the routes table is showing it

Note: even putting cy.wait into cy.then does not solve it - something is really off about this alias.
Cypress v6.1.0
The alias
todosis not recognized, but the routes table is showing itNote: even putting
cy.waitintocy.thendoes not solve it - something is really off about this alias.