mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Assert that the Rich Text document is ready before continuing with Cypress tests (#12612)
GitOrigin-RevId: fb0755200366e1129ee86ba9a439210ffe64e205
This commit is contained in:
parent
6ca565fa90
commit
e09a5f3adf
3 changed files with 9 additions and 0 deletions
|
@ -20,6 +20,9 @@ const mountEditor = (content: string) => {
|
|||
</EditorProviders>
|
||||
</Container>
|
||||
)
|
||||
|
||||
// wait for the content to be parsed and revealed
|
||||
cy.get('.cm-content').should('have.css', 'opacity', '1')
|
||||
}
|
||||
|
||||
describe('<CodeMirrorEditor/> lists in Rich Text mode', function () {
|
||||
|
|
|
@ -32,6 +32,9 @@ const mountEditor = (content: string) => {
|
|||
</EditorProviders>
|
||||
</Container>
|
||||
)
|
||||
|
||||
// wait for the content to be parsed and revealed
|
||||
cy.get('.cm-content').should('have.css', 'opacity', '1')
|
||||
}
|
||||
|
||||
describe('<CodeMirrorEditor/> toolbar in Rich Text mode', function () {
|
||||
|
|
|
@ -34,6 +34,9 @@ describe('<CodeMirrorEditor/> in Rich Text mode', function () {
|
|||
</Container>
|
||||
)
|
||||
|
||||
// wait for the content to be parsed and revealed
|
||||
cy.get('.cm-content').should('have.css', 'opacity', '1')
|
||||
|
||||
cy.get('.cm-line').eq(0).click().as('first-line')
|
||||
cy.get('.cm-line').eq(1).as('second-line')
|
||||
cy.get('.cm-line').eq(2).as('third-line')
|
||||
|
|
Loading…
Reference in a new issue