mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Wait for parsing and syntax highlighting in autocomplete Cypress tests (#33667)
* Wait for parsing and syntax highlighting in autocomplete Cypress tests * Wait for syntax highlighting in write-and-cite Cypress tests GitOrigin-RevId: d48f10c864b0a170b4a02e95e3a989fdc4137dbb
This commit is contained in:
@@ -75,7 +75,7 @@ describe('autocomplete', { scrollBehavior: false }, function () {
|
||||
|
||||
cy.get('.cm-editor').as('editor')
|
||||
|
||||
cy.contains('\\section{Results}')
|
||||
cy.get('.tok-keyword') // wait for parsing and syntax highlighting
|
||||
|
||||
// no autocomplete
|
||||
cy.findAllByRole('listbox').should('have.length', 0)
|
||||
@@ -222,7 +222,7 @@ describe('autocomplete', { scrollBehavior: false }, function () {
|
||||
|
||||
cy.get('.cm-editor').as('editor')
|
||||
|
||||
cy.contains('\\section{Results}')
|
||||
cy.get('.tok-keyword') // wait for parsing and syntax highlighting
|
||||
|
||||
// put the cursor on a blank line to type in
|
||||
cy.get('.cm-line').eq(16).as('line')
|
||||
@@ -461,7 +461,7 @@ describe('autocomplete', { scrollBehavior: false }, function () {
|
||||
|
||||
cy.get('.cm-editor').as('editor')
|
||||
|
||||
cy.contains('\\section{Results}')
|
||||
cy.get('.tok-keyword') // wait for parsing and syntax highlighting
|
||||
|
||||
// no autocomplete
|
||||
cy.findAllByRole('listbox').should('have.length', 0)
|
||||
|
||||
Reference in New Issue
Block a user