mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-26 09:46:17 -04:00
Output now uses CodeMirror editor
This commit is contained in:
parent
bc949b47d9
commit
68733c74cc
14 changed files with 665 additions and 495 deletions
|
@ -90,7 +90,7 @@ module.exports = {
|
|||
browser
|
||||
.useCss()
|
||||
.waitForElementNotVisible("#stale-indicator", 1000)
|
||||
.expect.element("#output-text").to.have.property("value").that.equals("44 6f 6e 27 74 20 50 61 6e 69 63 2e");
|
||||
.expect.element("#output-text").to.have.property("value").that.equals("44 6f 6e 27 74 20 50 61 6e 69 63 2e"); // TODO
|
||||
|
||||
// Clear recipe
|
||||
browser
|
||||
|
@ -206,7 +206,7 @@ module.exports = {
|
|||
.useCss()
|
||||
.waitForElementVisible(".operation .op-title", 1000)
|
||||
.waitForElementNotVisible("#stale-indicator", 1000)
|
||||
.expect.element("#output-text").to.have.property("value").which.matches(/[\da-f-]{36}/);
|
||||
.expect.element("#output-text").to.have.property("value").which.matches(/[\da-f-]{36}/); // TODO
|
||||
|
||||
browser.click("#clr-recipe");
|
||||
},
|
||||
|
|
|
@ -443,9 +443,9 @@ function testOp(browser, opName, input, output, args=[]) {
|
|||
bakeOp(browser, opName, input, args);
|
||||
|
||||
if (typeof output === "string") {
|
||||
browser.expect.element("#output-text").to.have.property("value").that.equals(output);
|
||||
browser.expect.element("#output-text").to.have.property("value").that.equals(output); // TODO
|
||||
} else if (output instanceof RegExp) {
|
||||
browser.expect.element("#output-text").to.have.property("value").that.matches(output);
|
||||
browser.expect.element("#output-text").to.have.property("value").that.matches(output); // TODO
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -463,8 +463,8 @@ function testOpHtml(browser, opName, input, cssSelector, output, args=[]) {
|
|||
bakeOp(browser, opName, input, args);
|
||||
|
||||
if (typeof output === "string") {
|
||||
browser.expect.element("#output-html " + cssSelector).text.that.equals(output);
|
||||
browser.expect.element("#output-html " + cssSelector).text.that.equals(output); // TODO
|
||||
} else if (output instanceof RegExp) {
|
||||
browser.expect.element("#output-html " + cssSelector).text.that.matches(output);
|
||||
browser.expect.element("#output-html " + cssSelector).text.that.matches(output); // TODO
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue