aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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')
}