Skip to content

Explicit wait doesn't work with regular expression and glob #567

Closed
@behlrattan

Description

@behlrattan
  • Operating System:OSX
  • Cypress Version:19.4
  • Browser Version:Chrome 58.0.3029.110

Is this a Feature or Bug?

Bug

Current behavior:

CypressError: Timed out retrying: cy.wait() timed out waiting 5000ms for the 1st request to the route: 'submit'. No request ever occured.

Desired behavior:

Explict wait should work

How to reproduce:

Test code:

The endpoint on which I want to apply explicit wait is
api/v1/account/a5f35b5f-bc8f-4c7b-a79d-68950dc2fcb7/submit
api/v1/account/<unique application id for every request>/submit

cy.server()

//Tried Regex and Glob one at a time and not all together
cy.route(//api/v1/account/./submit/).as('submit')
cy.route('/api/v1/account/**').as('submit')
cy.route('/api/v1/account/
/submit').as('submit')
cy.get('button').click()
cy.wait('@submit').its('url').should('verify/complete')

Additional Info (images, stack traces, etc)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions