Skip to content

Commit bfab5b4

Browse files
committed
🆙 update(e2e): record screenshots for e2e test failures
1 parent df7c7b2 commit bfab5b4

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

‎.gitignore‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ lib
22
coverage
33
dist/*.gz
44
docs/_book
5-
test/e2e/report/
5+
test/e2e/report
6+
test/e2e/screenshots
67
node_modules
78
.DS_Store
89
*.log

‎config/nightwatch.conf.js‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ module.exports = {
1919
default: {
2020
selenium_port: 4444,
2121
selenium_host: 'localhost',
22-
silent: true
22+
silent: true,
23+
screenshots: {
24+
enabled: true,
25+
on_failure: true,
26+
on_error: false,
27+
path: 'test/e2e/screenshots'
28+
}
2329
},
2430

2531
chrome: {

0 commit comments

Comments
 (0)