Output now uses CodeMirror editor

This commit is contained in:
n1474335 committed 2022-07-02 19:23:03 +01:00
1 parent bc949b47d9
commit 68733c74cc
14 files changed
+665 -495

No files matched your search

+2 -2
View File
@@ -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");
},
+4 -4
View File
@@ -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
}
}