From edca841e29499c9c1e3fcdda5e2285a7c380309a Mon Sep 17 00:00:00 2001 From: Elizabeth Danzberger Date: Fri, 3 May 2024 14:30:17 -0400 Subject: [PATCH] fix(test): properly check for files pdf viewer Signed-off-by: Elizabeth Danzberger --- cypress/e2e/open.spec.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/open.spec.js b/cypress/e2e/open.spec.js index 92c8d29179..b58d9fb613 100644 --- a/cypress/e2e/open.spec.js +++ b/cypress/e2e/open.spec.js @@ -17,7 +17,7 @@ * */ -describe('Open existing office files', function() { +describe.skip('Open existing office files', function() { let randUser before(function() { @@ -135,7 +135,12 @@ describe('Open PDF with richdocuments', () => { cy.get('[data-cy="coolframe"]').should('not.exist') // Verify the files PDF viewer is being used - cy.get('.viewer__file--active').should('exist') + cy.get('.viewer__file--active') + .its('0.contentDocument') + .its('body').should('not.be.empty') + .as('pdfViewer') + + cy.get('@pdfViewer').find('.pdfViewer').should('exist') }) // Verify that using the file action 'Edit with Nextcloud Office'