|
|
@@ -2,7 +2,7 @@ import { describe, it, before, after } from 'mocha'
|
|
|
import { expect } from 'chai'
|
|
|
import { By, until, Condition } from 'selenium-webdriver'
|
|
|
//import * as waitOn from 'wait-on'
|
|
|
-import { getRootAndWait } from '../lib/elements.js'
|
|
|
+import { getRootAndWait, getActionButtons } from '../lib/elements.js'
|
|
|
|
|
|
describe('config: general', function () {
|
|
|
before(async function () {
|
|
|
@@ -39,7 +39,7 @@ describe('config: general', function () {
|
|
|
it('Default buttons are rendered', async function() {
|
|
|
await getRootAndWait()
|
|
|
|
|
|
- const buttons = await webdriver.findElement(By.id('root-group')).findElements(By.tagName('button'))
|
|
|
+ const buttons = await getActionButtons(webdriver)
|
|
|
|
|
|
expect(buttons).to.have.length(8)
|
|
|
})
|
|
|
@@ -69,7 +69,7 @@ describe('config: general', function () {
|
|
|
})
|
|
|
|
|
|
it('Start date action (passive)', async function() {
|
|
|
- await webdriver.get(runner.baseUrl())
|
|
|
+ await getRootAndWait()
|
|
|
|
|
|
const buttons = await webdriver.findElements(By.css('[title="date-passive"]'))
|
|
|
|