qe-fe-automation
Version:
FE test automation framework using cypress
12 lines (10 loc) • 340 B
text/typescript
import { SharedIntercepts } from '@intercepts-lib/index';
import { guidRegex } from '@utility-lib/constants';
export class CommerceApiIntercepts {
static interceptCommerceApis() {
SharedIntercepts.intercepts();
cy.intercept('GET', new RegExp(`/api/invoices/v2/booking/${guidRegex}\\?.+`)).as(
'waitForInvoice'
);
}
}