I have the following service calls on click of an element. I will need to intercept a request that does not have f0000000000 in the endpoint.
https://example.com/f0000000000/path1 - GET
https://example.com/f0000000000/path1 - GET
https://example.com/f0000000000/path1 - GET
https://example.com/f0000000000/path1 - GET
https://example.com/f0000000000/path1 - GET
https://example.com/f0000000000/path1 - GET
https://example.com/f2021090606/path1 - GET
How can we achieve this in cypress? Do we have any similar options?
cy.intercept("GET", "**/NOT(f0000000000)/path1*").as('getForecast');
cy.get('#some').click();
cy.wait('@getForecast').its('response.statusCode').should('eq', 200)
});
