aboutsummaryrefslogtreecommitdiffstats
path: root/test/screens
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-03-31 05:48:41 +0800
committerkumavis <aaron@kumavis.me>2018-03-31 05:48:41 +0800
commit7a406d51c375247242d8b3c752bd1f9341215430 (patch)
tree16d1826cc0af6a3c5d0e70e5e7194b114736fe34 /test/screens
parentd05a2ca96895195e30c0987bf042c079b4caeadf (diff)
downloadtangerine-wallet-browser-7a406d51c375247242d8b3c752bd1f9341215430.tar
tangerine-wallet-browser-7a406d51c375247242d8b3c752bd1f9341215430.tar.gz
tangerine-wallet-browser-7a406d51c375247242d8b3c752bd1f9341215430.tar.bz2
tangerine-wallet-browser-7a406d51c375247242d8b3c752bd1f9341215430.tar.lz
tangerine-wallet-browser-7a406d51c375247242d8b3c752bd1f9341215430.tar.xz
tangerine-wallet-browser-7a406d51c375247242d8b3c752bd1f9341215430.tar.zst
tangerine-wallet-browser-7a406d51c375247242d8b3c752bd1f9341215430.zip
development - screens - fix screenshot on failure
Diffstat (limited to 'test/screens')
-rw-r--r--test/screens/new.spec.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/screens/new.spec.js b/test/screens/new.spec.js
index 71b3c53ac..43490226b 100644
--- a/test/screens/new.spec.js
+++ b/test/screens/new.spec.js
@@ -16,12 +16,13 @@ let driver
captureAllScreens().catch((err) => {
try {
- verboseReportOnFailure()
console.error(err)
+ verboseReportOnFailure()
driver.quit()
- } finally {
- process.exit(1)
+ } catch (err) {
+ console.error(err)
}
+ process.exit(1)
})
async function captureAllScreens() {