aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWhymarrh Whitby <whymarrh.whitby@gmail.com>2018-10-01 22:58:24 +0800
committerWhymarrh Whitby <whymarrh.whitby@gmail.com>2018-10-01 22:58:24 +0800
commit08b3f41ecd03c41272b86b001c884f8b893a39f3 (patch)
treedbc7225914446397d2437c8f1420b7e7cc67086d
parentb7946928fdefb134a876c116778de383fab893b6 (diff)
downloadtangerine-wallet-browser-08b3f41ecd03c41272b86b001c884f8b893a39f3.tar.gz
tangerine-wallet-browser-08b3f41ecd03c41272b86b001c884f8b893a39f3.tar.zst
tangerine-wallet-browser-08b3f41ecd03c41272b86b001c884f8b893a39f3.zip
Fix error message shown in assertElementNotPresent e2e helper fn
-rw-r--r--test/e2e/beta/helpers.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/e2e/beta/helpers.js b/test/e2e/beta/helpers.js
index db0b47ef2..4055d8155 100644
--- a/test/e2e/beta/helpers.js
+++ b/test/e2e/beta/helpers.js
@@ -128,7 +128,5 @@ async function assertElementNotPresent (webdriver, driver, by) {
} catch (err) {
assert(err instanceof webdriver.error.NoSuchElementError || err instanceof webdriver.error.TimeoutError)
}
- if (dataTab) {
- assert(false, 'Data tab should not be present')
- }
+ assert.ok(!dataTab, 'Found element that should not be present')
}