From 6cde25eb1fe96d912881c7c1891472971b6722f4 Mon Sep 17 00:00:00 2001
From: Varac <varac@varac.net>
Date: Wed, 4 Aug 2021 17:25:10 +0200
Subject: [PATCH] Update taiko test for NC20

---
 test/taiko/apps.js | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/test/taiko/apps.js b/test/taiko/apps.js
index f71a8ab80..cd8cf45da 100644
--- a/test/taiko/apps.js
+++ b/test/taiko/apps.js
@@ -50,7 +50,6 @@ const assert = require('assert');
       await write(nextcloudPassword, into(textBox('Password')))
 
       await click('Log in')
-
       // Close potential nextcloud first run wizard modal
       // https://github.com/nextcloud/firstrunwizard/issues/488
       // Unfortunately, we need to sleep a while since I haven't found a
@@ -58,15 +57,18 @@ const assert = require('assert');
       // tests should also work on subsequent logins.
       await waitFor(5000)
       await press('Escape')
+      await waitFor(async () => (await text("Set location for weather").isVisible()))
 
       console.log('• Nextcloud Onlyoffice integration')
       // Open document and type some text
-      await click(link(), above('Add notes'))
+      await click('Files')
+      await waitFor(async () => (await link({class:'new'}).isVisible()))
+      await click(link({class:'new'}))
       await click('Document')
       await press('Enter')
 
       let italicButtonId = '#id-toolbar-btn-italic'
-      await waitFor($(italicButtonId), globalTimeout)
+      await waitFor($(italicButtonId), 120000)
 
       // Activate italic button
       let buttonStateBefore = await evaluate($(italicButtonId), (elem) => {return elem.getAttribute('class')})
-- 
GitLab