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