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

Finished wordpress test

parent 5cc56aae
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ const assert = require('assert');
const domain = process.env.DOMAIN
const adminpanelUrl = 'https://admin.' + domain
const grafanaUrl = 'https://grafana.' + domain
const globalTimeout = 120000
const globalTimeout = 60000
// https://docs.taiko.dev/api/setconfig/
// setConfig( { observeTime: 1000});
......@@ -20,6 +20,9 @@ const assert = require('assert');
await openBrowser()
// await screencast.startScreencast('output.gif')
// Wait for manual screencast recording
// await waitFor(5000)
await goto(adminpanelUrl)
await click('Login')
await click('Login with OAS')
......@@ -42,8 +45,6 @@ const assert = require('assert');
await click(link(), above('Add notes'))
await click('Document')
await press('Enter')
// await click(link('Documents'), below('Name'))
// await click(link('Welcome to Nextcloud Hub.docx'))
let italicButtonId = '#id-toolbar-btn-italic'
await waitFor($(italicButtonId), globalTimeout)
......@@ -84,6 +85,7 @@ const assert = require('assert');
await click('Log in')
await click('Login with OpenID Connect')
await click('Continue with ' + username)
await assert.ok(await link('Dashboard').exists())
}
// Grafana
......@@ -100,7 +102,7 @@ const assert = require('assert');
await goto(grafanaUrl + '/dashboards')
await click(link('Nodes'))
await('CPU Usage')
await waitFor(2000)
// await waitFor(2000)
// Explore Loki log messages
await goto(grafanaUrl + '/explore')
......@@ -111,12 +113,10 @@ const assert = require('assert');
await click('cert-manager')
await click('grafana')
await click('Show logs')
// write('{job=~".*"} |~ "error|fail|exception|fatal"')
// click('Run Query')
}
// Wait a bit before closing browser
await waitFor(20000)
// await waitFor(20000)
} catch (error) {
await screenshot()
// await screencast.stopScreencast()
......
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