From ee77e0a1e4486aab42074a7ef17d6fe77f1e361a Mon Sep 17 00:00:00 2001 From: n1474335 Date: Tue, 26 Mar 2024 16:10:44 +0000 Subject: [PATCH] More test tweaking --- tests/browser/00_nightwatch.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/browser/00_nightwatch.js b/tests/browser/00_nightwatch.js index 89ab7eea..e64b476b 100644 --- a/tests/browser/00_nightwatch.js +++ b/tests/browser/00_nightwatch.js @@ -194,6 +194,9 @@ module.exports = { // Open category browser + .useCss() + .waitForElementNotVisible("#snackbar-container", 10000) + .useXpath() .click(otherCat) .expect.element(genUUID).to.be.visible; @@ -232,7 +235,7 @@ module.exports = { browser .waitForElementNotVisible("#snackbar-container") .click("#copy-output") - .waitForElementVisible("#snackbar-container .snackbar-content", 5000, 100, false) + .waitForElementVisible("#snackbar-container .snackbar-content") .expect.element("#snackbar-container .snackbar-content").text.to.equal("Copied raw output successfully."); // Alert bar disappears after the correct amount of time