From 5afd9dc3ace6e401121204bd82f1cd895d34d389 Mon Sep 17 00:00:00 2001 From: Arie Peterson <arie@greenhost.nl> Date: Thu, 28 Mar 2024 15:28:15 +0100 Subject: [PATCH] Work around button being covered by span --- cypress/e2e/test-nextcloud.cy.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/test-nextcloud.cy.js b/cypress/e2e/test-nextcloud.cy.js index 39939c48..cdbc5eda 100644 --- a/cypress/e2e/test-nextcloud.cy.js +++ b/cypress/e2e/test-nextcloud.cy.js @@ -57,8 +57,9 @@ describe('Test nextcloud', () => { cy.visit('apps/files') cy.contains('button', 'New').click() const file_rand = 'test-' + Math.random().toString(16).substr(2, 12) - cy.contains('button', 'New document').click().type(file_rand) - cy.contains('button', 'Create').click() + cy.contains('button', 'New document').click() + cy.get('input[placeholder="Filename"]').type(file_rand) + cy.contains('span', 'Create').click() // Test Onlyoffice cy.frameLoaded('#onlyofficeFrame') -- GitLab