Fix nightwatch tests with collapsed operation
This commit is contained in:
parent
95559cda59
commit
060f218002
@ -60,10 +60,15 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
"Operation popover descriptions render HTML safely": browser => {
|
"Operation popover descriptions render HTML safely": browser => {
|
||||||
const op = "//li[contains(@class, 'operation') and text()='Escape Smart Characters']";
|
const favouritesCat = "//a[contains(@class, 'category-title') and contains(@data-target, '#catFavourites')]",
|
||||||
|
op = "//ul[@id='search-results']//li[contains(@class, 'operation') and contains(., 'Escape Smart Characters')]";
|
||||||
|
|
||||||
browser
|
browser
|
||||||
|
.useCss()
|
||||||
|
.clearValue("#search")
|
||||||
|
.setValue("#search", "Escape Smart Characters")
|
||||||
.useXpath()
|
.useXpath()
|
||||||
|
.waitForElementVisible(op, 1000)
|
||||||
.moveToElement(op, 10, 10)
|
.moveToElement(op, 10, 10)
|
||||||
.useCss()
|
.useCss()
|
||||||
.waitForElementVisible(".popover-body code:last-of-type", 1000)
|
.waitForElementVisible(".popover-body code:last-of-type", 1000)
|
||||||
@ -72,7 +77,11 @@ module.exports = {
|
|||||||
browser
|
browser
|
||||||
.useCss()
|
.useCss()
|
||||||
.moveToElement("#operations .title", 1, 1)
|
.moveToElement("#operations .title", 1, 1)
|
||||||
.waitForElementNotPresent(".popover-body", 1000);
|
.waitForElementNotPresent(".popover-body", 1000)
|
||||||
|
.clearValue("#search")
|
||||||
|
.useXpath()
|
||||||
|
.getLocationInView(favouritesCat)
|
||||||
|
.click(favouritesCat);
|
||||||
},
|
},
|
||||||
|
|
||||||
"Recipe can be run": browser => {
|
"Recipe can be run": browser => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user