diff options
author | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-10-01 22:58:24 +0800 |
---|---|---|
committer | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-10-01 22:58:24 +0800 |
commit | 08b3f41ecd03c41272b86b001c884f8b893a39f3 (patch) | |
tree | dbc7225914446397d2437c8f1420b7e7cc67086d /test/e2e | |
parent | b7946928fdefb134a876c116778de383fab893b6 (diff) | |
download | tangerine-wallet-browser-08b3f41ecd03c41272b86b001c884f8b893a39f3.tar tangerine-wallet-browser-08b3f41ecd03c41272b86b001c884f8b893a39f3.tar.gz tangerine-wallet-browser-08b3f41ecd03c41272b86b001c884f8b893a39f3.tar.bz2 tangerine-wallet-browser-08b3f41ecd03c41272b86b001c884f8b893a39f3.tar.lz tangerine-wallet-browser-08b3f41ecd03c41272b86b001c884f8b893a39f3.tar.xz tangerine-wallet-browser-08b3f41ecd03c41272b86b001c884f8b893a39f3.tar.zst tangerine-wallet-browser-08b3f41ecd03c41272b86b001c884f8b893a39f3.zip |
Fix error message shown in assertElementNotPresent e2e helper fn
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/beta/helpers.js | 4 |
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') } |