From 3c2ece7d8932d8d75f898b5deb1225505f66dd5d Mon Sep 17 00:00:00 2001 From: Arie Peterson <arie@greenhost.nl> Date: Fri, 23 Aug 2024 13:55:09 +0200 Subject: [PATCH] Press enter instead of clicking Create --- cypress/e2e/test-nextcloud.cy.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cypress/e2e/test-nextcloud.cy.js b/cypress/e2e/test-nextcloud.cy.js index ac9976b5..1f229825 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. -- GitLab