mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #10960 from overleaf/mj-keybindinging-cypress
[web] Add cypress tests for emacs and vim keybindings GitOrigin-RevId: 17ada42d39ed81e2a0947fd102e5782428c1c619
This commit is contained in:
parent
e8c677f7ad
commit
9f1ddf6a64
1 changed files with 4 additions and 0 deletions
|
@ -12,6 +12,7 @@ declare global {
|
|||
interceptCompile: typeof interceptCompile
|
||||
interceptEvents: typeof interceptEvents
|
||||
interceptSpelling: typeof interceptSpelling
|
||||
index: () => Chainable<number>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -19,3 +20,6 @@ declare global {
|
|||
Cypress.Commands.add('interceptCompile', interceptCompile)
|
||||
Cypress.Commands.add('interceptEvents', interceptEvents)
|
||||
Cypress.Commands.add('interceptSpelling', interceptSpelling)
|
||||
Cypress.Commands.add('index', { prevSubject: true }, subject => {
|
||||
return cy.wrap(subject).invoke('index')
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue