]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Squashed commit of the following:
authorMichael Shamoon <4887959+shamoon@users.noreply.github.com>
Fri, 1 Apr 2022 16:28:47 +0000 (09:28 -0700)
committerMichael Shamoon <4887959+shamoon@users.noreply.github.com>
Fri, 1 Apr 2022 16:28:47 +0000 (09:28 -0700)
commit 3709bf5d7602bb2e126465870e00fca35d4f99be
Author: Michael Shamoon <4887959+shamoon@users.noreply.github.com>
Date:   Fri Apr 1 09:24:12 2022 -0700

    Attempt 2 to fix test failing on GHA

src-ui/cypress/integration/settings.spec.ts

index c19500441d8ec5661a056e01f5e9f86395f1af67..92c4eda6add858a0f5240598e1b372f8714d9bed 100644 (file)
@@ -92,8 +92,8 @@ describe('settings', () => {
   it('should change the pdf viewer type', () => {
     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().wait(1000) // await change to be registered
+    cy.visit('/settings').wait('@savedViews')
+    cy.contains('Use PDF viewer provided by the browser').click()
     cy.contains('button', 'Save').click().wait('@savedViews').wait(1000)
     cy.visit('/documents/1')
     cy.get('object[data*="/api/documents/1/preview/"]')