From 98d7f1481c5473cf16ab01b0d8a1155dfb5988ae Mon Sep 17 00:00:00 2001 From: n1474335 Date: Fri, 22 Jan 2021 16:52:37 +0000 Subject: [PATCH] Improved UI tests --- tests/browser/ops.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/browser/ops.js b/tests/browser/ops.js index c96b52c0..8d23cabd 100644 --- a/tests/browser/ops.js +++ b/tests/browser/ops.js @@ -392,10 +392,14 @@ function testOp(browser, opName, input, output, args=[]) { .useCss() .click("#clr-recipe") .click("#clr-io") - .urlHash("recipe=" + recipeConfig) - .setValue("#input-text", input); + .waitForElementNotPresent("#rec-list li.operation") + .expect.element("#input-text").to.have.value.that.equals(""); - browser.expect.element("#input-text").to.have.value.that.equals(input); + browser + .urlHash("recipe=" + recipeConfig) + .setValue("#input-text", input) + .waitForElementPresent("#rec-list li.operation") + .expect.element("#input-text").to.have.value.that.equals(input); browser .waitForElementVisible("#stale-indicator", 5000)