|
@@ -44,42 +44,42 @@ describe('config: general', function () {
|
|
|
expect(buttons).to.have.length(8)
|
|
expect(buttons).to.have.length(8)
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
- it('Start date action (popup)', async function() {
|
|
|
|
|
|
|
+ it('Start dir action (popup)', async function () {
|
|
|
await getRootAndWait()
|
|
await getRootAndWait()
|
|
|
|
|
|
|
|
- const buttons = await webdriver.findElements(By.css('[title="date-popup"]'))
|
|
|
|
|
|
|
+ const buttons = await webdriver.findElements(By.css('[title="dir-popup"]'))
|
|
|
|
|
|
|
|
expect(buttons).to.have.length(1)
|
|
expect(buttons).to.have.length(1)
|
|
|
|
|
|
|
|
- const buttonDate = buttons[0]
|
|
|
|
|
|
|
+ const buttonCMD = buttons[0]
|
|
|
|
|
|
|
|
- expect(buttonDate).to.not.be.null
|
|
|
|
|
|
|
+ expect(buttonCMD).to.not.be.null
|
|
|
|
|
|
|
|
- buttonDate.click()
|
|
|
|
|
|
|
+ buttonCMD.click()
|
|
|
|
|
|
|
|
const dialog = await webdriver.findElement(By.id('execution-results-popup'))
|
|
const dialog = await webdriver.findElement(By.id('execution-results-popup'))
|
|
|
expect(await dialog.isDisplayed()).to.be.true
|
|
expect(await dialog.isDisplayed()).to.be.true
|
|
|
|
|
|
|
|
const title = await webdriver.findElement(By.id('execution-dialog-title'))
|
|
const title = await webdriver.findElement(By.id('execution-dialog-title'))
|
|
|
- expect(await title.getAttribute('innerText')).to.be.equal('date-popup')
|
|
|
|
|
|
|
+ expect(await webdriver.wait(until.elementTextIs(title, 'dir-popup'), 2000))
|
|
|
|
|
|
|
|
const dialogErr = await webdriver.findElement(By.id('big-error'))
|
|
const dialogErr = await webdriver.findElement(By.id('big-error'))
|
|
|
expect(dialogErr).to.not.be.null
|
|
expect(dialogErr).to.not.be.null
|
|
|
expect(await dialogErr.isDisplayed()).to.be.false
|
|
expect(await dialogErr.isDisplayed()).to.be.false
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
- it('Start date action (passive)', async function() {
|
|
|
|
|
|
|
+ it('Start cd action (passive)', async function () {
|
|
|
await getRootAndWait()
|
|
await getRootAndWait()
|
|
|
|
|
|
|
|
- const buttons = await webdriver.findElements(By.css('[title="date-passive"]'))
|
|
|
|
|
|
|
+ const buttons = await webdriver.findElements(By.css('[title="cd-passive"]'))
|
|
|
|
|
|
|
|
expect(buttons).to.have.length(1)
|
|
expect(buttons).to.have.length(1)
|
|
|
|
|
|
|
|
- const buttonDate = buttons[0]
|
|
|
|
|
|
|
+ const buttonCMD = buttons[0]
|
|
|
|
|
|
|
|
- expect(buttonDate).to.not.be.null
|
|
|
|
|
|
|
+ expect(buttonCMD).to.not.be.null
|
|
|
|
|
|
|
|
- buttonDate.click()
|
|
|
|
|
|
|
+ buttonCMD.click()
|
|
|
|
|
|
|
|
const dialog = await webdriver.findElement(By.id('execution-results-popup'))
|
|
const dialog = await webdriver.findElement(By.id('execution-results-popup'))
|
|
|
expect(await dialog.isDisplayed()).to.be.false
|
|
expect(await dialog.isDisplayed()).to.be.false
|