From 072576619e5226228695a97b4a878a0b86454f41 Mon Sep 17 00:00:00 2001 From: Varac <varac@varac.net> Date: Thu, 5 Aug 2021 12:05:19 +0200 Subject: [PATCH] Go back to Dashboard before selecting Files Weirdly, going directly from Calendar to Files fails, taiko displays no files. So we need to take an extra roundtrip via the Dashboard *sigh* --- test/taiko/apps.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/taiko/apps.js b/test/taiko/apps.js index 3857e43fa..bd8a2a18b 100644 --- a/test/taiko/apps.js +++ b/test/taiko/apps.js @@ -11,7 +11,11 @@ const assert = require('assert'); // https://docs.taiko.dev/api/setconfig/ // setConfig( { observeTime: 1000}); - setConfig( { observeTime: 0, navigationTimeout: globalTimeout }); + setConfig( { + observeTime: 0, + // Navigation timeout value in milliseconds for navigation after performing openTab, goto, reload, goBack, goForward, click, write, clear, press and evaluate. + navigationTimeout: globalTimeout + }); console.log('Executing these tests: ' + taikoTests) await openBrowser({ @@ -61,6 +65,9 @@ const assert = require('assert'); // Test if calendar app is enabled await click('Calendar') + await waitFor(async () => (await text("Settings & Import").isVisible())) + await click('Dashboard') + await waitFor(async () => (await text("Set location for weather").isVisible())) console.log('• Nextcloud Onlyoffice integration') // Open document and type some text -- GitLab