feat(tests): add tests

Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
This commit is contained in:
Elizabeth Danzberger 2025-03-12 17:23:26 -04:00
parent 5c33d537ea
commit d2bf7a4ed3
No known key found for this signature in database
GPG key ID: D64CE07FD0188C79
3 changed files with 29 additions and 0 deletions

View file

@ -57,4 +57,33 @@ describe('Federated sharing of office documents', function() {
cy.waitForCollabora(true, true)
})
})
describe('Open files with symbols in their names', () => {
const symbols = ['%', '&']
symbols.forEach((symbol) => {
const filename = `next ${symbol} cloud.odt`
it(`${symbol} in file name`, () => {
cy.uploadFile(shareOwner, filename, 'application/vnd.oasis.opendocument.text', `/${filename}`)
cy.login(shareOwner)
cy.shareFileToRemoteUser(shareOwner, filename, shareRecipient)
cy.login(shareRecipient)
cy.visit('/apps/files', {
onBeforeLoad(win) {
cy.spy(win, 'postMessage').as('postMessage')
},
})
cy.openFile(filename)
cy.waitForViewer()
cy.waitForCollabora(true, true).within(() => {
cy.get('#closebutton').click()
cy.waitForViewerClose()
})
})
})
})
})

Binary file not shown.

Binary file not shown.