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
7d8bdbcf7e
commit
98d7f1481c
1 changed files with 7 additions and 3 deletions
|
@ -392,10 +392,14 @@ function testOp(browser, opName, input, output, args=[]) {
|
||||||
.useCss()
|
.useCss()
|
||||||
.click("#clr-recipe")
|
.click("#clr-recipe")
|
||||||
.click("#clr-io")
|
.click("#clr-io")
|
||||||
.urlHash("recipe=" + recipeConfig)
|
.waitForElementNotPresent("#rec-list li.operation")
|
||||||
.setValue("#input-text", input);
|
.expect.element("#input-text").to.have.value.that.equals("");
|
||||||
|
|
||||||
browser.expect.element("#input-text").to.have.value.that.equals(input);
|
browser
|
||||||
|
.urlHash("recipe=" + recipeConfig)
|
||||||
|
.setValue("#input-text", input)
|
||||||
|
.waitForElementPresent("#rec-list li.operation")
|
||||||
|
.expect.element("#input-text").to.have.value.that.equals(input);
|
||||||
|
|
||||||
browser
|
browser
|
||||||
.waitForElementVisible("#stale-indicator", 5000)
|
.waitForElementVisible("#stale-indicator", 5000)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue