https://cypress.io logo
*Question:* I'm having a hard time matching a URL...
# e2e-testing
s
Question: I'm having a hard time matching a URL for a
cy.intercept()
, and could use some help: **URL I'm trying to match**:
http://...<privacy reasons>.../data/pacing?startDate=2022-11-18T00:00:00.000-07:00&endDate=2022-11-18T23:59:59.999-07:00&advertisers=&accountManager=&productLineItems=&productCategories=
**Patterns i've tried:**:
Copy code
Javascript:
 cy.intercept('GET', '**/data*').as('pacingRequest'); // glob pattern
 cy.intercept('GET', '**/pacing?*').as('pacingRequest'); // glob pattern
 cy.intercept('GET', '**/data/pacing?*').as('pacingRequest'); // glob pattern
 cy.intercept('GET', '**\/data\/pacing$').as('pacingRequest'); //attempt at regex
Anyone have any suggestions?