Skip to content

Commit

Permalink
###1.7.3 add ability to take screenshots for nightwatch.js framework
Browse files Browse the repository at this point in the history
  • Loading branch information
BelAn97 committed Jun 11, 2020
1 parent fe2578d commit d5ef5f4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ For webdriver.io:
```
framework: webdriverio
```
For nightwatch.js:
```
framework: nightwatchjs
```


Use 'multiReport = true' for parallel test execution (adding timestamp in report file name),
or change report name in tests or hooks for shardTestFiles option:
Expand Down
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#Changelog

###1.7.3
add ability to take screenshots for nightwatch js framework

###1.7.2
add ability to take screenshots for webdriver.io framework

Expand Down
1 change: 1 addition & 0 deletions lib/reportGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ function saveScreenshotToFile(outFile, config) {
page.screenshot({path: outFile});
break;
case "webdriverio":
case "nightwatchjs":
browser.saveScreenshot(outFile);
break;
case "cypress":
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mochawesome-screenshots",
"version": "1.7.2",
"version": "1.7.3",
"description": "A Gorgeous HTML/CSS Reporter for Mocha.js",
"scripts": {
"test": "gulp build"
Expand All @@ -18,6 +18,7 @@
"cypress",
"playwright",
"puppeteer",
"nightwatch",
"webdriverio",
"screenshot",
"reporter",
Expand Down

0 comments on commit d5ef5f4

Please sign in to comment.