Fix failing e2e settings test

[ci skip]
This commit is contained in:
Michael Shamoon 2022-04-01 09:09:02 -07:00
parent d18eebf97d
commit efbc2a5715

View File

@ -93,7 +93,7 @@ describe('settings', () => {
cy.visit('/documents/1')
cy.get('object[data*="/api/documents/1/preview/"]').should('not.exist')
cy.visit('/settings')
cy.contains('Use PDF viewer provided by the browser').click()
cy.contains('Use PDF viewer provided by the browser').click().wait(1000) // await change to be registered
cy.contains('button', 'Save').click().wait('@savedViews').wait(1000)
cy.visit('/documents/1')
cy.get('object[data*="/api/documents/1/preview/"]')