Skip to content

Commit

Permalink
🚀 RELEASE: Trace added to the report
Browse files Browse the repository at this point in the history
  • Loading branch information
ortoniKC committed Nov 2, 2023
1 parent b247881 commit 78b5ef3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config/cucumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
snippetInterface: "async-await"
},
paths: [
"src/test/features/addToCartWithAuth.feature"
"src/test/features/"
],
publishQuiet: true,
dryRun: false,
Expand Down
18 changes: 13 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ TypeScript is a powerful superset of JavaScript that adds optional static typing
3. [Logs](https://www.npmjs.com/package/winston)
4. Screenshots of failure
5. Test videos of failure
6. Trace of failure

## Get Started

Expand All @@ -35,7 +36,14 @@ TypeScript is a powerful superset of JavaScript that adds optional static typing
2. Extract and open in the VS-Code
3. `npm i` to install the dependencies
4. `npx playwright install` to install the browsers
5. `npm test` to execute the tests
5. `npm run test` to execute the tests
6. To run a particular test change
```
paths: [
"src/test/features/featurename.feature"
]
```
7. Use tags to run a specific or collection of specs

### Folder structure
0. `src\pages` -> All the page (UI screen)
Expand All @@ -46,11 +54,11 @@ TypeScript is a powerful superset of JavaScript that adds optional static typing
5. `src\helper\env` -> Multiple environments are handled
6. `src\helper\types` -> To get environment code suggesstions
7. `src\helper\report` -> To generate the report
8. `cucumber.json` -> One file to do all the magic
8. `config/cucumber.js` -> One file to do all the magic
9. `package.json` -> Contains all the dependencies
10. `src\helper\auth` -> Storage state (Auth file)
11. `src\helper\util` -> Read test data from json & logger

## Tutorials
1. Learn Playwright - [Playwright - TS](https://youtube.com/playlist?list=PL699Xf-_ilW7EyC6lMuU4jelKemmS6KgD)
2. BDD in detail - [TS binding](https://youtube.com/playlist?list=PL699Xf-_ilW6KgK-S1l9ynOnBGiZl2Bsk)


[![VIDEO THUMBNAIL](IMAGE URL)](<iframe width="560" height="315" src="https://www.youtube.com/embed/bfWXNLqKlvA" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>)

0 comments on commit 78b5ef3

Please sign in to comment.