From bf1936d340f8e740779803d9adc9590ea4c9f775 Mon Sep 17 00:00:00 2001 From: Varac <varac@varac.net> Date: Tue, 3 Aug 2021 16:37:22 +0200 Subject: [PATCH] Test if onlyoffice document is running Fixes: #897 --- test/taiko/apps.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test/taiko/apps.js b/test/taiko/apps.js index 0393ce741..f71a8ab80 100644 --- a/test/taiko/apps.js +++ b/test/taiko/apps.js @@ -35,11 +35,16 @@ const assert = require('assert'); const onlyofficeUrl = 'https://office.' + domain const nextcloudUsername = process.env.NEXTCLOUD_USERNAME || 'admin' const nextcloudPassword = process.env.NEXTCLOUD_PASSWORD - console.log('• Nextcloud and Onlyoffice') + console.log('• Onlyoffice') await goto(onlyofficeUrl + '/welcome') - await waitFor('Document Server is running') + await waitFor(async () => (await text("Thank you for choosing ONLYOFFICE!").isVisible())) + await waitFor(async () => (await text("Document Server is running").isVisible())) + await goto(onlyofficeUrl + '/healthcheck') + await waitFor(async () => (await text("true").isVisible())) + + console.log('• Nextcloud') await goto(nextcloudUrl) await write(nextcloudUsername, into(textBox('Username'))) await write(nextcloudPassword, into(textBox('Password'))) @@ -54,6 +59,7 @@ const assert = require('assert'); await waitFor(5000) await press('Escape') + console.log('• Nextcloud Onlyoffice integration') // Open document and type some text await click(link(), above('Add notes')) await click('Document') -- GitLab