https://cypress.io logo
I want to intercept a `GET` request but it doesn't...
# e2e-testing
h
I want to intercept a
GET
request but it doesn't work as I wanted:
Copy code
cy.intercept({
            method: 'GET',
            url: `${Cypress.env('API_URL')}/api/v1/receipt/*?cache_buster=*`,
        }).as('getReceipt');
This intercept intercepts the first url, but I want to intercept the second url. Any suggestions how to make the
*
more strict?
Copy code
https://***.com/api/v1/receipt/suggestions?type=receipt&finance_type=purchase&is_invoice=0&cache_buster=FlYeNfBNG5ZY66
https://***.com/api/v1/receipt/630ba8b4f7005c058a702534?cache_buster=LcsJ1esqykcp93