diff --git a/services/web/cypress/support/shared/commands/index.ts b/services/web/cypress/support/shared/commands/index.ts index f1f4b64497..2bd102b220 100644 --- a/services/web/cypress/support/shared/commands/index.ts +++ b/services/web/cypress/support/shared/commands/index.ts @@ -1,6 +1,7 @@ import '@testing-library/cypress/add-commands' import { interceptCompile } from './compile' import { interceptEvents } from './events' +import { interceptSpelling } from './spelling' // eslint-disable-next-line no-unused-vars,@typescript-eslint/no-namespace declare global { @@ -10,9 +11,11 @@ declare global { interface Chainable { interceptCompile: typeof interceptCompile interceptEvents: typeof interceptEvents + interceptSpelling: typeof interceptSpelling } } } Cypress.Commands.add('interceptCompile', interceptCompile) Cypress.Commands.add('interceptEvents', interceptEvents) +Cypress.Commands.add('interceptSpelling', interceptSpelling) diff --git a/services/web/cypress/support/shared/commands/spelling.ts b/services/web/cypress/support/shared/commands/spelling.ts new file mode 100644 index 0000000000..3a50d1b7f9 --- /dev/null +++ b/services/web/cypress/support/shared/commands/spelling.ts @@ -0,0 +1,3 @@ +export const interceptSpelling = () => { + cy.intercept('POST', '/spelling/check', []) +}