mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
[SP] e2e test remove force
from spelling test (#19195)
* [SP] e2e test remove `force` from spelling test This was causing problems, as the button click didn't always have the expected effect. GitOrigin-RevId: e82e0052885a491a211c4cbe20435fb5981900f6
This commit is contained in:
parent
fd50db2341
commit
e89cf3cddc
1 changed files with 4 additions and 1 deletions
|
@ -49,8 +49,11 @@ describe('editor', () => {
|
||||||
cy.findByText(word)
|
cy.findByText(word)
|
||||||
.parent()
|
.parent()
|
||||||
.within(() => cy.get('button').click())
|
.within(() => cy.get('button').click())
|
||||||
|
|
||||||
|
// the modal has 2 close buttons, this ensures the one with the visible label is
|
||||||
|
// clicked, otherwise it would need `force: true`
|
||||||
|
cy.get('.btn').contains('Close').click()
|
||||||
})
|
})
|
||||||
cy.get('button').contains('Close').click({ force: true })
|
|
||||||
|
|
||||||
cy.log('close left panel')
|
cy.log('close left panel')
|
||||||
cy.get('[id="left-menu"]').type('{esc}')
|
cy.get('[id="left-menu"]').type('{esc}')
|
||||||
|
|
Loading…
Reference in a new issue