Merge pull request #22492 from overleaf/msm-fix-flaky-e2e-jpg-preview

[SP] Wait for document being rendered before editor tests

GitOrigin-RevId: 4afa9b7d225ff19e6c10b061de4eef076bcd9a5d
This commit is contained in:
Miguel Serrano
2024-12-13 09:45:49 +01:00
committed by Copybot
parent 8bda1d5b92
commit 303e85a72b

View File

@@ -187,6 +187,7 @@ describe('editor', () => {
createProject(`project-${uuid()}`, { type: 'Example Project' })
// wait until the main document is rendered
cy.findByText(/Loading/).should('not.exist')
cy.findByText(/Your Paper/)
})
it('renders jpg', () => {