1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Fix error message shown in assertElementNotPresent e2e helper fn

This commit is contained in:
Whymarrh Whitby 2018-10-01 12:28:24 -02:30
parent b7946928fd
commit 08b3f41ecd

View File

@ -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')
}