mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #10858 from overleaf/ae-source-editor-tests
Refactor source editor Cypress tests into smaller files GitOrigin-RevId: fb80e7ddf3553f384c06c279404e16375dadaa44
This commit is contained in:
parent
9f1f62b9be
commit
1ad8a99887
2 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
3
services/web/cypress/support/shared/commands/spelling.ts
Normal file
3
services/web/cypress/support/shared/commands/spelling.ts
Normal file
|
@ -0,0 +1,3 @@
|
|||
export const interceptSpelling = () => {
|
||||
cy.intercept('POST', '/spelling/check', [])
|
||||
}
|
Loading…
Reference in a new issue