Skip to content

Commit

Permalink
feat: upgrade to 2.12.0, add example for requests attachments, gherki…
Browse files Browse the repository at this point in the history
…ng table tms and issue links
  • Loading branch information
Shelex committed Sep 8, 2021
1 parent 0547819 commit 15eb6aa
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 11 deletions.
10 changes: 9 additions & 1 deletion cypress/integration/cucumber/examples.feature
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,12 @@ Feature: Gherkin_feature
| 3 | 1 | 4 |
| 3 | 1 | 5 |
| 3 | 2 | 5 |
| 2 | -1 | 1 |
| 2 | -1 | 1 |
Scenario Outline: Will attach links for each example separately
Given some precondition
Then I am very happy
Examples:
| tms | issue |
| TEST-CASE-1 | TASK-1 |
| TEST-CASE-2 | TASK-2 |
7 changes: 7 additions & 0 deletions cypress/integration/examples/attachments.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,11 @@ describe('Allure attachments', () => {
'application/json'
);
});

it('should attach cy.request data with allureAttachRequests env var', () => {
Cypress.env('allureAttachRequests', true);
cy.request(
'https://dog-facts-api.herokuapp.com/api/v1/resources/dogs?number=1'
);
});
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"allure:history": "mv -f allure-report/history allure-results/history && rm -r allure-report || true"
},
"devDependencies": {
"@shelex/cypress-allure-plugin": "2.9.0",
"@shelex/cypress-allure-plugin": "2.12.0",
"cypress": "6.8.0",
"cypress-cucumber-preprocessor": "2.3.1",
"eslint-plugin-chai-friendly": "0.7.2",
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -825,13 +825,13 @@
dependencies:
uuid "8.3.0"

"@shelex/cypress-allure-plugin@2.9.0":
version "2.9.0"
resolved "https://registry.yarnpkg.com/@shelex/cypress-allure-plugin/-/cypress-allure-plugin-2.9.0.tgz#e4c9796294c3c30aff8b24d723cd4e593fe24a61"
integrity sha512-OdzwxhTwymInHuRR18Ix5jj4jyLnIJ7z/ZVYKsgQ+sGwiH2VS8luGVrEdfXVxyqr4A8Es29aPTahmM1ksJEJCg==
"@shelex/cypress-allure-plugin@2.12.0":
version "2.12.0"
resolved "https://registry.yarnpkg.com/@shelex/cypress-allure-plugin/-/cypress-allure-plugin-2.12.0.tgz#c89c5092f987478333877fecd773867fc5cd6393"
integrity sha512-WJbb/25UsnAEhrxgSx4YuPpAcHQ6rWSY44qHh41Ff7VnHy7H+r5jaOfhSc3FK7JZCLxRYTH/6BwbeRFCKJGInw==
dependencies:
"@shelex/allure-js-commons-browser" "1.2.0"
crypto-js "3.3.0"
crypto-js "4.1.1"
uuid "8.3.2"

"@types/[email protected]":
Expand Down Expand Up @@ -1803,10 +1803,10 @@ crypto-browserify@^3.0.0:
randombytes "^2.0.0"
randomfill "^1.0.3"

crypto-js@3.3.0:
version "3.3.0"
resolved "https://registry.yarnpkg.com/crypto-js/-/crypto-js-3.3.0.tgz#846dd1cce2f68aacfa156c8578f926a609b7976b"
integrity sha512-DIT51nX0dCfKltpRiXV+/TVZq+Qq2NgF4644+K7Ttnla7zEzqc+kjJyiB96BHNyUTBxyjzRcZYpUdZa+QAqi6Q==
crypto-js@4.1.1:
version "4.1.1"
resolved "https://registry.yarnpkg.com/crypto-js/-/crypto-js-4.1.1.tgz#9e485bcf03521041bd85844786b83fb7619736cf"
integrity sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw==

cucumber-expressions@^5.0.13:
version "5.0.18"
Expand Down

0 comments on commit 15eb6aa

Please sign in to comment.