aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-05-22 11:17:46 +0800
committerkumavis <aaron@kumavis.me>2018-05-22 11:17:46 +0800
commit83782421bb16f809e3679d51e598b0348f17cf3b (patch)
treec98b09bbbb798c2a2e1a9c468227c259fcb51c56
parenta3ca64d3210077cb1da67cfd105e8e22e978ff49 (diff)
downloadtangerine-wallet-browser-83782421bb16f809e3679d51e598b0348f17cf3b.tar
tangerine-wallet-browser-83782421bb16f809e3679d51e598b0348f17cf3b.tar.gz
tangerine-wallet-browser-83782421bb16f809e3679d51e598b0348f17cf3b.tar.bz2
tangerine-wallet-browser-83782421bb16f809e3679d51e598b0348f17cf3b.tar.lz
tangerine-wallet-browser-83782421bb16f809e3679d51e598b0348f17cf3b.tar.xz
tangerine-wallet-browser-83782421bb16f809e3679d51e598b0348f17cf3b.tar.zst
tangerine-wallet-browser-83782421bb16f809e3679d51e598b0348f17cf3b.zip
test - e2e - only inspect console for errors in chrome
-rw-r--r--test/e2e/metamask.spec.js16
1 files changed, 10 insertions, 6 deletions
diff --git a/test/e2e/metamask.spec.js b/test/e2e/metamask.spec.js
index 482259ee8..8ec7de16c 100644
--- a/test/e2e/metamask.spec.js
+++ b/test/e2e/metamask.spec.js
@@ -30,12 +30,16 @@ describe('Metamask popup page', function () {
})
afterEach(async function () {
- // check for console errors
- const errors = await checkBrowserForConsoleErrors()
- if (errors.length) {
- const errorReports = errors.map(err => err.message)
- const errorMessage = `Errors found in browser console:\n${errorReports.join('\n')}`
- this.test.error(new Error(errorMessage))
+ // logs command not supported in firefox
+ // https://github.com/SeleniumHQ/selenium/issues/2910
+ if (process.env.SELENIUM_BROWSER === 'chrome') {
+ // check for console errors
+ const errors = await checkBrowserForConsoleErrors()
+ if (errors.length) {
+ const errorReports = errors.map(err => err.message)
+ const errorMessage = `Errors found in browser console:\n${errorReports.join('\n')}`
+ this.test.error(new Error(errorMessage))
+ }
}
// gather extra data if test failed
if (this.currentTest.state === 'failed') {