Skip to content
Snippets Groups Projects
Commit 0928999f authored by Arie Peterson's avatar Arie Peterson
Browse files

Click to open newly created office document in test

parent 7e63eea6
No related branches found
No related tags found
1 merge request!573Update Helm release nextcloud to v4.6.4
Pipeline #46253 passed with stages
in 10 minutes and 4 seconds
......@@ -56,10 +56,14 @@ describe('Test nextcloud', () => {
// Create a new OO document with a random file name
cy.visit('apps/files')
cy.contains('button', 'New').click()
const file_rand = '{selectAll}{del}test-' + Math.random().toString(16).substr(2, 12) + '.docx'
const file_rand = 'test-' + Math.random().toString(16).substr(2, 12)
cy.contains('button', 'New document').click()
cy.get('input[placeholder="Filename"]').type(file_rand)
cy.get('input[placeholder="Filename"]').type('{selectAll}{del}' + file_rand + '.docx')
cy.contains('span', 'Create').click()
// Before, creating the new document this way would also open it
// automatically. It seems with newer nextcloud/onlyoffice that is no
// longer the case.
cy.contains('span', file_rand).should('exist').click()
// Test Onlyoffice
cy.frameLoaded('#onlyofficeFrame')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment