Have you tried the same code in headless mode. Its not working in headless
@saikrishnabanda6493 Жыл бұрын
What does ** mean here in the code. Can you help me
@TestingInsights Жыл бұрын
In Cypress, ** is a wildcard character that can match any number of characters in a URL. Let's say you have this as intercept url '/users/**' , this means that any request with a URL that starts with /users/, regardless of what follows after it, will be intercepted.
@saikrishnabanda6493 Жыл бұрын
What if we have query param as **/secure/?slug=abcde ?
@TestingInsights Жыл бұрын
Then you can use a wildcard for the URL and the query parameter separately like this: cy.intercept({ method: 'GET', url: '**/secure/**', query: { slug: /abcde.*/ } })