diff --git a/cypress/e2e/test-nextcloud.cy.js b/cypress/e2e/test-nextcloud.cy.js index ac9976b5b35d35728c20eae1b744e328a27352de..1f229825c76224943054979b6a1285629ea1e146 100644 --- a/cypress/e2e/test-nextcloud.cy.js +++ b/cypress/e2e/test-nextcloud.cy.js @@ -58,8 +58,7 @@ describe('Test nextcloud', () => { cy.contains('button', 'New').click() const file_rand = 'test-' + Math.random().toString(16).substr(2, 12) cy.contains('button', 'New document').click() - cy.get('input[placeholder="Filename"]').type('{selectAll}{del}' + file_rand + '.docx') - cy.contains('span', 'Create').click() + cy.get('input[placeholder="Filename"]').type('{selectAll}{del}' + file_rand + '.docx{enter}') // With older Nextcloud, creating the new document this way would also open // it automatically. It seems with newer nextcloud/onlyoffice that is no // longer the case.