From efbc2a57153c0ea980114ed92aa61c7f2725f40e Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 1 Apr 2022 09:09:02 -0700 Subject: [PATCH] Fix failing e2e settings test [ci skip] --- src-ui/cypress/integration/settings.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-ui/cypress/integration/settings.spec.ts b/src-ui/cypress/integration/settings.spec.ts index 0da4aa151..c19500441 100644 --- a/src-ui/cypress/integration/settings.spec.ts +++ b/src-ui/cypress/integration/settings.spec.ts @@ -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/"]')