@reportportal/agent-js-cypress
Advanced tools
Comparing version 5.0.2 to 5.0.3
## [5.0.3] - 2022-01-27 | ||
### Fixed | ||
- [#76](https://github.com/reportportal/agent-js-cypress/issues/76) Custom screenshot command doesn't wait for image to be taken. | ||
- [95](https://github.com/reportportal/agent-js-cypress/issues/95) and [97](https://github.com/reportportal/agent-js-cypress/issues/97) with 9.* cypress versions support. | ||
### Changed | ||
- Package size reduced | ||
## [5.0.2] - 2021-05-18 | ||
@@ -3,0 +12,0 @@ ### Added |
@@ -45,3 +45,3 @@ /* | ||
Cypress.Commands.add('debug', (message, file) => { | ||
Cypress.Commands.add('logDebug', (message, file) => { | ||
cy.task('rp_Log', { | ||
@@ -167,7 +167,9 @@ level: 'debug', | ||
if (name) { | ||
cy.task('rp_screenshot', { | ||
fileName: name, | ||
}); | ||
return cy | ||
.task('rp_screenshot', { | ||
fileName: name, | ||
}) | ||
.then(() => originalFn(subject, name, option)); | ||
} | ||
originalFn(subject, name, option); | ||
return originalFn(subject, name, option); | ||
}); | ||
@@ -174,0 +176,0 @@ |
{ | ||
"name": "@reportportal/agent-js-cypress", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"description": "This agent helps Cypress to communicate with Report Portal", | ||
@@ -12,10 +12,2 @@ "main": "index.js", | ||
}, | ||
"keywords": [ | ||
"ReportPortal", | ||
"rp", | ||
"Cypress", | ||
"reporting", | ||
"reporter", | ||
"epam" | ||
], | ||
"repository": { | ||
@@ -26,3 +18,3 @@ "type": "git", | ||
"dependencies": { | ||
"@reportportal/client-javascript": "^5.0.4", | ||
"@reportportal/client-javascript": "^5.0.6", | ||
"glob": "7.1.3", | ||
@@ -33,5 +25,11 @@ "minimatch": "^3.0.4", | ||
}, | ||
"directories": { | ||
"lib": "./lib" | ||
}, | ||
"files": [ | ||
"/lib" | ||
], | ||
"license": "Apache-2.0", | ||
"devDependencies": { | ||
"cypress": "^7.1.0", | ||
"cypress": "^9.3.1", | ||
"eslint": "6.5.1", | ||
@@ -47,3 +45,11 @@ "eslint-config-airbnb-base": "14.0.0", | ||
"prettier": "1.19.1" | ||
} | ||
}, | ||
"keywords": [ | ||
"ReportPortal", | ||
"rp", | ||
"Cypress", | ||
"reporting", | ||
"reporter", | ||
"epam" | ||
] | ||
} |
@@ -52,3 +52,3 @@ # @reportportal/agent-js-cypress | ||
See examples of usage [here](https://github.com/reportportal/examples-js/example-cypress). | ||
See examples of usage [here](https://github.com/reportportal/examples-js/tree/master/example-cypress). | ||
@@ -74,2 +74,3 @@ ## Options | ||
| parallel | Indicates to the reporter that spec files will be executed in parallel. Parameter could be equal boolean values. See [Parallel execution](#parallel-execution) | | ||
| restClientConfig | Optional property.<br/> The object with `agent` property for configure [http(s)](https://nodejs.org/api/https.html#https_https_request_url_options_callback) client, may contain other client options eg. `timeout`.<br/> Visit [client-javascript](https://github.com/reportportal/client-javascript) for more details. | | ||
@@ -108,3 +109,3 @@ ### Overwrite options from config file | ||
* cy.trace (*message* , *file*). Reports *message* and optional *file* as a log of the current test with trace log level. | ||
* cy.debug (*message* , *file*). Reports *message* and optional *file* as a log of the current test with debug log level. | ||
* cy.logDebug (*message* , *file*). Reports *message* and optional *file* as a log of the current test with debug log level. | ||
* cy.info (*message* , *file*). Reports *message* and optional *file* as log of the current test with info log level. | ||
@@ -130,2 +131,4 @@ * cy.warn (*message* , *file*). Reports *message* and optional *file* as a log of the current test with warning log level. | ||
**Note:** The `cy.debug` RP command has been changed to `cy.logDebug` due to the command with the same name in Cypress 9.*. | ||
### Report attributes for tests | ||
@@ -206,3 +209,3 @@ | ||
By default Cypress create a separate run for each test file. This section describe how to report test items of different specs into the single launch. | ||
This feature needs information about Cypreess configuration. To provide it to the reporter you need to install reportPortal plugin (see how to in [this section](#register-reportportal-plugin-cypresspluginsindexjs)) or to copy the following Cypress config options to the reporterOptions: | ||
This feature needs information about Cypress configuration. To provide it to the reporter you need to install reportPortal plugin (see how to in [this section](#register-reportportal-plugin-cypresspluginsindexjs)) or to copy the following Cypress config options to the reporterOptions: | ||
* ignoreTestFiles | ||
@@ -383,5 +386,1 @@ * testFiles | ||
Licensed under the [Apache License v2.0](LICENSE) | ||
# Contribution | ||
<img src="img/ahold-delhaize-logo-green.jpg" width="250"> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6
76168
18
1466
381