qe-fe-automation
Version:
FE test automation framework using cypress
17 lines (15 loc) • 730 B
text/typescript
import { guidRegex } from '@utility-lib/index';
export class ProfileInterceptApis {
static interceptProfileApis() {
cy.intercept('PUT', '/api/uaa/userinfo').as('userInfoSave');
cy.intercept('GET', 'api/user/passenger').as('waitForPassengerInfo');
cy.intercept('GET', 'api/user/profile/delegates').as('waitForDelegatesInfo');
cy.intercept('PUT', 'api/user/profile/delegates').as('waitForDelegatesInfoSave');
cy.intercept(
'POST',
new RegExp(`/api/user/bookableUsers/${guidRegex}/loyaltyProgramMemberships`)
).as('waitForLoyaltyCard');
cy.intercept('GET', '/api/user/pointAccount').as('userRewards');
cy.intercept('GET', '/api/liquid/user/search/home/todos').as('expenseTodos');
}
}