From 229a834ac40fbbdeb18c20b6a3be0ffcd0c90cc8 Mon Sep 17 00:00:00 2001
From: Arie Peterson <arie@greenhost.nl>
Date: Thu, 28 Mar 2024 14:55:09 +0100
Subject: [PATCH] Update test to reflect new html naming

---
 cypress/e2e/test-nextcloud.cy.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cypress/e2e/test-nextcloud.cy.js b/cypress/e2e/test-nextcloud.cy.js
index 8834ebd2..39939c48 100644
--- a/cypress/e2e/test-nextcloud.cy.js
+++ b/cypress/e2e/test-nextcloud.cy.js
@@ -55,10 +55,10 @@ describe('Test nextcloud', () => {
 
     // Create a new OO document with a random file name
     cy.visit('apps/files')
-    cy.get('.new').click()
+    cy.contains('button', 'New').click()
     const file_rand = 'test-' + Math.random().toString(16).substr(2, 12)
-    cy.get('[data-action=template-new-onlyoffice-1]').click().type(file_rand)
-    cy.get('.icon-confirm').click()
+    cy.contains('button', 'New document').click().type(file_rand)
+    cy.contains('button', 'Create').click()
 
     // Test Onlyoffice
     cy.frameLoaded('#onlyofficeFrame')
-- 
GitLab