Input now uses CodeMirror editor

This commit is contained in:
n1474335 2022-06-29 18:02:49 +01:00
parent 54fdc05e3a
commit 85ffe48743
17 changed files with 666 additions and 182 deletions

View file

@ -82,7 +82,7 @@ module.exports = {
// Enter input
browser
.useCss()
.setValue("#input-text", "Don't Panic.")
.setValue("#input-text", "Don't Panic.") // TODO
.pause(1000)
.click("#bake");

View file

@ -409,16 +409,16 @@ function bakeOp(browser, opName, input, args=[]) {
.click("#clr-recipe")
.click("#clr-io")
.waitForElementNotPresent("#rec-list li.operation")
.expect.element("#input-text").to.have.property("value").that.equals("");
.expect.element("#input-text").to.have.property("value").that.equals(""); // TODO
browser
.perform(function() {
console.log(`Current test: ${opName}`);
})
.urlHash("recipe=" + recipeConfig)
.setValue("#input-text", input)
.setValue("#input-text", input) // TODO
.waitForElementPresent("#rec-list li.operation")
.expect.element("#input-text").to.have.property("value").that.equals(input);
.expect.element("#input-text").to.have.property("value").that.equals(input); // TODO
browser
.waitForElementVisible("#stale-indicator", 5000)