mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-24 16:56:15 -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()
|
||||
.click("#clr-recipe")
|
||||
.click("#clr-io")
|
||||
.urlHash("recipe=" + recipeConfig)
|
||||
.setValue("#input-text", input);
|
||||
.waitForElementNotPresent("#rec-list li.operation")
|
||||
.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
|
||||
.waitForElementVisible("#stale-indicator", 5000)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue