From e86bf5c991a9548ec1b35014215b3f5e669733f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Tue, 30 Apr 2024 15:28:44 +0200 Subject: [PATCH] tests: Adapt to new postmessage wait command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- cypress/e2e/share-link.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cypress/e2e/share-link.js b/cypress/e2e/share-link.js index ad50eeb577..3b9e61f20a 100644 --- a/cypress/e2e/share-link.js +++ b/cypress/e2e/share-link.js @@ -75,7 +75,7 @@ describe('Public sharing of office documents', function() { cy.inputCollaboraGuestName(guestName) cy.waitForCollabora() - cy.waitForDocumentStatus('Initialized') + cy.waitForPostMessage('App_LoadingStatus', { Status: 'Document_Loaded' }) cy.get('@loleafletframe').within(() => { cy.get('#closebutton').click() @@ -103,7 +103,7 @@ describe('Public sharing of office documents', function() { cy.waitForViewer() cy.waitForCollabora() - cy.waitForDocumentStatus('Initialized') + cy.waitForPostMessage('App_LoadingStatus', { Status: 'Document_Loaded' }) cy.get('@loleafletframe').within(() => { cy.get('#closebutton').click() @@ -129,7 +129,7 @@ describe('Public sharing of office documents', function() { cy.inputCollaboraGuestName(guestName) cy.waitForViewer() cy.waitForCollabora() - cy.waitForDocumentStatus('Initialized') + cy.waitForPostMessage('App_LoadingStatus', { Status: 'Document_Loaded' }) cy.get('@loleafletframe').within(() => { cy.get('#closebutton').click()