mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
Improved UI tests
This commit is contained in:
parent
db009d3689
commit
7d8bdbcf7e
1 changed files with 6 additions and 2 deletions
|
@ -393,11 +393,15 @@ function testOp(browser, opName, input, output, args=[]) {
|
||||||
.click("#clr-recipe")
|
.click("#clr-recipe")
|
||||||
.click("#clr-io")
|
.click("#clr-io")
|
||||||
.urlHash("recipe=" + recipeConfig)
|
.urlHash("recipe=" + recipeConfig)
|
||||||
.setValue("#input-text", input)
|
.setValue("#input-text", input);
|
||||||
|
|
||||||
|
browser.expect.element("#input-text").to.have.value.that.equals(input);
|
||||||
|
|
||||||
|
browser
|
||||||
.waitForElementVisible("#stale-indicator", 5000)
|
.waitForElementVisible("#stale-indicator", 5000)
|
||||||
.pause(100)
|
.pause(100)
|
||||||
.click("#bake")
|
.click("#bake")
|
||||||
.pause(150)
|
.pause(100)
|
||||||
.waitForElementPresent("#stale-indicator.hidden", 5000)
|
.waitForElementPresent("#stale-indicator.hidden", 5000)
|
||||||
.waitForElementNotVisible("#output-loader", 5000);
|
.waitForElementNotVisible("#output-loader", 5000);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue