From 80066f6ca7a423b35a70044f4bb15211d74b6603 Mon Sep 17 00:00:00 2001
From: Varac <varac@varac.net>
Date: Wed, 16 Mar 2022 11:12:51 +0100
Subject: [PATCH] Taiko: use .exists instead of .isVisible for text

---
 test/taiko/apps.js | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/test/taiko/apps.js b/test/taiko/apps.js
index 0b5cb76a7..1a26ad20c 100644
--- a/test/taiko/apps.js
+++ b/test/taiko/apps.js
@@ -53,16 +53,16 @@
       console.log('• Onlyoffice')
 
       await goto(onlyofficeUrl + '/welcome')
-      await waitFor(async () => (await text("Thank you for choosing ONLYOFFICE!").isVisible()))
-      await waitFor(async () => (await text("Document Server is running").isVisible()))
+      await waitFor(async () => (await text("Thank you for choosing ONLYOFFICE!").exists()))
+      await waitFor(async () => (await text("Document Server is running").exists()))
 
       await goto(onlyofficeUrl + '/healthcheck')
-      await waitFor(async () => (await text("true").isVisible()))
+      await waitFor(async () => (await text("true").exists()))
 
       console.log('• Nextcloud')
       await goto(nextcloudUrl)
       await sso_login_if_needed('Log in with Stackspin')
-      await waitFor(async () => (await text("Set location for weather").isVisible()), globalTimeout)
+      await waitFor(async () => (await text("Set location for weather").exists()), globalTimeout)
       // 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
@@ -73,11 +73,11 @@
 
       // Test password app
       await click('Passwords')
-      await waitFor(async () => (await text("Handbook").isVisible()), globalTimeout)
+      await waitFor(async () => (await text("Handbook").exists()), globalTimeout)
 
       // Test if calendar app is enabled
       await click('Calendar')
-      await waitFor(async () => (await text("Settings & Import").isVisible()), globalTimeout)
+      await waitFor(async () => (await text("Settings & Import").exists()), globalTimeout)
 
       console.log('• Nextcloud Onlyoffice integration')
       // Open document and type some text
-- 
GitLab