fix: share-link cypress test
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
This commit is contained in:
Родитель
71e520f157
Коммит
2250420730
|
@ -51,7 +51,18 @@ describe('Public sharing of office documents', function() {
|
|||
cy.spy(win, 'postMessage').as('postMessage')
|
||||
},
|
||||
})
|
||||
|
||||
cy.waitForCollabora()
|
||||
cy.get('@postMessage', { timeout: 20000 }).should(spy => {
|
||||
const calls = spy.getCalls()
|
||||
const findMatchingCall = calls.find(call => call.args[0].indexOf('"MessageId":"App_LoadingStatus"') !== -1)
|
||||
if (!findMatchingCall) {
|
||||
return expect(findMatchingCall).to.not.be.undefined
|
||||
}
|
||||
const object = JSON.parse(findMatchingCall.args[0])
|
||||
expect(object.Values).to.have.property('Status', 'Initialized')
|
||||
})
|
||||
|
||||
cy.get('@loleafletframe').within(() => {
|
||||
cy.get('#closebutton').click()
|
||||
})
|
||||
|
|
Загрузка…
Ссылка в новой задаче