mirror of
https://github.com/nextcloud/richdocuments.git
synced 2025-12-17 21:12:14 +01:00
feat(tests): add tests
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
This commit is contained in:
parent
5c33d537ea
commit
d2bf7a4ed3
3 changed files with 29 additions and 0 deletions
|
|
@ -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()
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
|
|||
BIN
cypress/fixtures/next % cloud.odt
Normal file
BIN
cypress/fixtures/next % cloud.odt
Normal file
Binary file not shown.
BIN
cypress/fixtures/next & cloud.odt
Normal file
BIN
cypress/fixtures/next & cloud.odt
Normal file
Binary file not shown.
Loading…
Add table
Reference in a new issue