Skip to content
Snippets Groups Projects
Unverified Commit 6cde25eb authored by Varac's avatar Varac
Browse files

Update taiko test for NC20

parent 38c95338
No related branches found
No related tags found
No related merge requests found
......@@ -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')})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment