mirror of https://github.com/gchq/CyberChef.git
Compare commits
2 Commits
48f3bf9ea7
...
bbebba6481
Author | SHA1 | Date |
---|---|---|
n1474335 | bbebba6481 | |
n1474335 | f0a49fefa4 |
|
@ -173,25 +173,20 @@ module.exports = {
|
|||
|
||||
browser.waitForElementVisible("#stale-indicator");
|
||||
|
||||
browser.expect.element("#auto-bake").to.not.be.selected;
|
||||
|
||||
// Enable previously disabled autobake
|
||||
browser.expect.element("#auto-bake").to.not.be.selected;
|
||||
browser.click("#auto-bake-label");
|
||||
browser.expect.element("#auto-bake").to.be.selected.before(1000);
|
||||
|
||||
browser.waitUntil(() => {
|
||||
return browser.expect.element("#auto-bake").to.be.selected;
|
||||
}, 1000);
|
||||
|
||||
// Add content to the input
|
||||
browser.pause(100);
|
||||
browser.sendKeys("#input-text .cm-content", "1");
|
||||
|
||||
browser.waitForElementVisible("#output-loader");
|
||||
|
||||
browser.pause(500);
|
||||
|
||||
// Make another change while the previous input is being baked
|
||||
browser.sendKeys("#input-text .cm-content", "2");
|
||||
|
||||
browser
|
||||
.sendKeys("#input-text .cm-content", "2")
|
||||
.waitForElementNotVisible("#stale-indicator")
|
||||
.waitForElementNotVisible("#output-loader");
|
||||
|
||||
|
@ -200,6 +195,7 @@ module.exports = {
|
|||
|
||||
// Turn autobake off again
|
||||
browser.click("#auto-bake-label");
|
||||
browser.expect.element("#auto-bake").to.not.be.selected.before(1000);
|
||||
},
|
||||
|
||||
"Special content": browser => {
|
||||
|
|
|
@ -39,6 +39,7 @@ function setInput(browser, input, type=true) {
|
|||
browser.execute(text => {
|
||||
window.app.setInput(text);
|
||||
}, [input]);
|
||||
browser.pause(100);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue