From 7d8bdbcf7e3fa76f096456efe724921fb5c4e35d Mon Sep 17 00:00:00 2001 From: n1474335 Date: Fri, 22 Jan 2021 16:39:04 +0000 Subject: [PATCH] Improved UI tests --- tests/browser/ops.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/browser/ops.js b/tests/browser/ops.js index 7d39c8e6..c96b52c0 100644 --- a/tests/browser/ops.js +++ b/tests/browser/ops.js @@ -393,11 +393,15 @@ function testOp(browser, opName, input, output, args=[]) { .click("#clr-recipe") .click("#clr-io") .urlHash("recipe=" + recipeConfig) - .setValue("#input-text", input) + .setValue("#input-text", input); + + browser.expect.element("#input-text").to.have.value.that.equals(input); + + browser .waitForElementVisible("#stale-indicator", 5000) .pause(100) .click("#bake") - .pause(150) + .pause(100) .waitForElementPresent("#stale-indicator.hidden", 5000) .waitForElementNotVisible("#output-loader", 5000);