UNPKG

qe-fe-automation

Version:
20 lines (16 loc) 657 B
import { SharedIntercepts } from '@intercepts-lib/index'; export class HelpCenterApiIntercept { static interceptHelpCenterApis() { SharedIntercepts.intercepts(); cy.intercept('GET', /api\/user\/split\/getsplits/).as('getSplits'); cy.intercept( 'GET', /https:\/\/cdn.contentful.com\/spaces\/eux8w6w8hjmq\/environments\/master\/entries/ ).as('getHelpCenterContent'); cy.intercept('GET', /app\/helpcenter\/assets/, { log: false }).as( 'getHelpCenterAssets' ); cy.intercept('GET', /api2.amplitude.com/).as('sendAmplitudeEvent'); cy.intercept('POST', /api\/chat\/v1\/user/).as('getUsersChannelData'); } }