@uuv/playwright 1.3.1 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.npmignore ADDED
@@ -0,0 +1,2 @@
1
+ package.json
2
+ *.md
package/bin/uuv CHANGED
File without changes
@@ -11,7 +11,7 @@ const fs_1 = __importDefault(require("fs"));
11
11
  const runner_playwright_1 = require("../lib/runner-playwright");
12
12
  const multiple_cucumber_html_reporter_1 = __importDefault(require("multiple-cucumber-html-reporter"));
13
13
  const cucumber_json_report_formatter_1 = require("cucumber-json-report-formatter");
14
- const uuid_1 = require("uuid");
14
+ const nanoid_1 = require("nanoid");
15
15
  const chalk_1 = __importDefault(require("chalk"));
16
16
  const chalk_table_1 = __importDefault(require("chalk-table"));
17
17
  const NANOS_IN_SECOND = 1000000000;
@@ -71,7 +71,7 @@ class UuvPlaywrightReporterHelper {
71
71
  });
72
72
  let newCurrentQuery = currentQuery.update(newTestCaseEnvelope);
73
73
  this.envelopes.push(newTestCaseEnvelope);
74
- const testCaseStartedId = (0, uuid_1.v4)();
74
+ const testCaseStartedId = (0, nanoid_1.nanoid)();
75
75
  const newTestCaseStartedEnvelope = this.createEnvelope({
76
76
  testCaseStarted: {
77
77
  id: testCaseStartedId,
@@ -307,7 +307,7 @@ class UuvPlaywrightReporterHelper {
307
307
  });
308
308
  }
309
309
  createStepDefinitionEnvelope() {
310
- const stepDefinitionId = (0, uuid_1.v4)();
310
+ const stepDefinitionId = (0, nanoid_1.nanoid)();
311
311
  this.envelopes.push(this.createEnvelope({
312
312
  stepDefinition: {
313
313
  id: stepDefinitionId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uuv/playwright",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "type": "commonjs",
5
5
  "author": "Louis Fredice NJAKO MOLOM (https://github.com/luifr10) & Stanley SERVICAL (https://github.com/stanlee974)",
6
6
  "description": "A solution to run E2E tests written in cucumber(BDD) with playwright.",
@@ -39,9 +39,9 @@
39
39
  "test": "npm run test:run"
40
40
  },
41
41
  "dependencies": {
42
- "@cucumber/cucumber": "9.1.0",
42
+ "@cucumber/cucumber": "9.1.2",
43
43
  "@playwright/test": "1.33.0",
44
- "@uuv/runner-commons": "1.3.1",
44
+ "@uuv/runner-commons": "1.3.3",
45
45
  "axe-core": "4.7.0",
46
46
  "axe-playwright": "1.2.3",
47
47
  "chalk": "4.1.2",
@@ -51,6 +51,7 @@
51
51
  "figlet": "1.6.0",
52
52
  "minimist": "1.2.8",
53
53
  "multiple-cucumber-html-reporter": "3.3.0",
54
+ "nanoid": "3.1.22",
54
55
  "ts-node": "10.9.1",
55
56
  "typescript": "4.9.5"
56
57
  },
@@ -66,7 +67,8 @@
66
67
  "postinstall.js",
67
68
  "target-config/**/*",
68
69
  "src/cucumber/step_definitions/playwright/generated/**/*",
69
- "*.md"
70
+ "*.md",
71
+ ".npmignore"
70
72
  ],
71
73
  "exports": {
72
74
  ".": {
package/CHANGELOG.md DELETED
@@ -1,26 +0,0 @@
1
- ## [1.3.1](https://github.com/e2e-test-quest/uuv/compare/runner-playwright-v1.3.0...runner-playwright-v1.3.1) (2023-05-09)
2
-
3
-
4
- ### Bug Fixes
5
-
6
- * **runner-commons:** fix npm documentation, [#87](https://github.com/e2e-test-quest/uuv/issues/87) ([ba7394c](https://github.com/e2e-test-quest/uuv/commit/ba7394cd755e350fd5a5964aed26435e5979e77d))
7
- * **runner-commons:** modify keyword for npmjs, [#87](https://github.com/e2e-test-quest/uuv/issues/87) ([392c4d0](https://github.com/e2e-test-quest/uuv/commit/392c4d0337179dae2c2a96c26dc2cc32e0ad87b3))
8
- * **runner-playwright:** add `npx playwright install` into postinstall, [#87](https://github.com/e2e-test-quest/uuv/issues/87) ([035f6aa](https://github.com/e2e-test-quest/uuv/commit/035f6aabb7d654eb45b789e73d63f118b628f9af))
9
- * **runner-playwright:** fix npm documentation, [#87](https://github.com/e2e-test-quest/uuv/issues/87) ([716de44](https://github.com/e2e-test-quest/uuv/commit/716de44456c50dcc4f52c3ed49f8fe48bf2f15b0))
10
- * **runner-playwright:** modify doc for npmjs, [#87](https://github.com/e2e-test-quest/uuv/issues/87) ([593e4ef](https://github.com/e2e-test-quest/uuv/commit/593e4ef3d14df27b3770f17bac9ba9ba7f326f4a))
11
-
12
- # Change Log
13
- All notable changes to this project will be documented in this file.
14
-
15
- The format is based on [Keep a Changelog](http://keepachangelog.com/)
16
- and this project adheres to [Semantic Versioning](http://semver.org/).
17
-
18
- ## [1.2.0-beta-20230424] - 2023-04-24
19
-
20
- ### Added
21
- - [#4](https://github.com/e2e-test-quest/uuv/issues/4)
22
- MINOR Amélioration du scoring npm
23
- - [#3](https://github.com/e2e-test-quest/uuv/issues/3)
24
- MAJOR Initialisation du pipeline
25
- - [#1](https://github.com/e2e-test-quest/uuv/issues/1)
26
- MAJOR Rajout de la licence Apache 2.0
package/CONTRIBUTING.md DELETED
@@ -1,81 +0,0 @@
1
- # Contributors guide
2
-
3
- **Want to contribute?**
4
- We try to make it easy, and all contributions, even the smaller ones, are more than welcome.
5
- This includes bug reports, fixes, documentation, examples...
6
- But first, read this page (including the small print at the end).
7
-
8
- Contributions are available on https://github.com/e2e-test-quest/uuv
9
-
10
- ## Legal
11
-
12
- All original contributions to _UUV_ are licensed under the
13
- [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0),
14
- version 2.0 or later.
15
-
16
- All contributions are subject to the [Developer Certificate of Origin](https://developercertificate.org/) (DCO).
17
- The DCO is a lightweight way for contributors to certify that they wrote or otherwise have the right to submit the code they are contributing to the project.
18
- The DCO text is also included verbatim in the [DCO.txt](DCO.txt) file in the root directory of the repository.
19
-
20
- Contributors **must** _sign-off_ that they adhere to these requirements by adding a `Signed-off-by` line to commit messages, as shown below:
21
-
22
- ```text
23
- This is the commit message
24
-
25
- Signed-off-by: Joe Dev <joe.dev@developer.example.org>
26
- ```
27
-
28
- Git has a handy [`-s` command line option](https://git-scm.com/docs/git-commit#Documentation/git-commit.txt---signoff) to append this automatically to your commit message:
29
-
30
- ```bash
31
- $ git commit -s -m 'This is the commit message'
32
- ```
33
-
34
- ## Reporting an issue
35
-
36
- This project uses GitLab issues to manage the issues.
37
-
38
- Before creating an issue:
39
-
40
- 1. upgrade your project to the latest released template version, and check whether your bug is still present,
41
- 2. have a look in the opened issues if your problem is already known/tracked, and possibly contribute to the thread with your own information.
42
-
43
- If none of the above was met, open an issue directly in GitLab, select the appropriate issue template and fill-in each section when applicable.
44
-
45
- ## Submitting a code change
46
-
47
- ### Git Setup
48
-
49
- Before contributing, make sure you have set up your Git authorship correctly:
50
-
51
- ```bash
52
- git config --global user.name "Your Full Name"
53
- git config --global user.email your.email@example.com
54
- ```
55
-
56
- ### Workflow
57
-
58
- All submissions, including submissions by project members, need to be reviewed before being merged.
59
-
60
- To contribute:
61
-
62
- 1. Create an issue describing the bug or enhancement you want to propose (select the right issue template).
63
- 2. Make sure the issue has been reviewed and agreed.
64
- 3. Create a Merge Request, from your **own** fork (see [forking workflow](https://docs.github.com/en/get-started/quickstart/fork-a-repo) documentation).
65
- Don't hesitate to mark your MR as `Draft` as long as you think it's not ready to be reviewed.
66
-
67
- ### Git Commit Conventions
68
-
69
- In addition to being signed-off according the [Developer Certificate of Origin](https://developercertificate.org/) (see above),
70
- Git commits in _UUV_ shall be:
71
-
72
- 1. **atomic** (1 commit `=` 1 and only 1 _thing_),
73
- 2. **semantic** (using [semantic-release commit message syntax](https://semantic-release.gitbook.io/semantic-release/#commit-message-format)).
74
- 3. **pattern**
75
- - **SCOPE** : one of (UUV, COMMONS, CYPRESS, PLAYWRIGHT, ASSISTANT, EXTENSION, DOCS)
76
- - ***TYPE*** : one of (FEAT, FIX, TECH, REFACTOR)
77
- - [**SCOPE**] [***TYPE***] #issue_identifier: commit message
78
- - Example :
79
- ```bash
80
- [CYPRESS] [FEAT] #51: upgrade library @badeball/cypress-cucumber-preprocessor version
81
- ```
package/dist/CHANGELOG.md DELETED
@@ -1,26 +0,0 @@
1
- ## [1.3.1](https://github.com/e2e-test-quest/uuv/compare/runner-playwright-v1.3.0...runner-playwright-v1.3.1) (2023-05-09)
2
-
3
-
4
- ### Bug Fixes
5
-
6
- * **runner-commons:** fix npm documentation, [#87](https://github.com/e2e-test-quest/uuv/issues/87) ([ba7394c](https://github.com/e2e-test-quest/uuv/commit/ba7394cd755e350fd5a5964aed26435e5979e77d))
7
- * **runner-commons:** modify keyword for npmjs, [#87](https://github.com/e2e-test-quest/uuv/issues/87) ([392c4d0](https://github.com/e2e-test-quest/uuv/commit/392c4d0337179dae2c2a96c26dc2cc32e0ad87b3))
8
- * **runner-playwright:** add `npx playwright install` into postinstall, [#87](https://github.com/e2e-test-quest/uuv/issues/87) ([035f6aa](https://github.com/e2e-test-quest/uuv/commit/035f6aabb7d654eb45b789e73d63f118b628f9af))
9
- * **runner-playwright:** fix npm documentation, [#87](https://github.com/e2e-test-quest/uuv/issues/87) ([716de44](https://github.com/e2e-test-quest/uuv/commit/716de44456c50dcc4f52c3ed49f8fe48bf2f15b0))
10
- * **runner-playwright:** modify doc for npmjs, [#87](https://github.com/e2e-test-quest/uuv/issues/87) ([593e4ef](https://github.com/e2e-test-quest/uuv/commit/593e4ef3d14df27b3770f17bac9ba9ba7f326f4a))
11
-
12
- # Change Log
13
- All notable changes to this project will be documented in this file.
14
-
15
- The format is based on [Keep a Changelog](http://keepachangelog.com/)
16
- and this project adheres to [Semantic Versioning](http://semver.org/).
17
-
18
- ## [1.2.0-beta-20230424] - 2023-04-24
19
-
20
- ### Added
21
- - [#4](https://github.com/e2e-test-quest/uuv/issues/4)
22
- MINOR Amélioration du scoring npm
23
- - [#3](https://github.com/e2e-test-quest/uuv/issues/3)
24
- MAJOR Initialisation du pipeline
25
- - [#1](https://github.com/e2e-test-quest/uuv/issues/1)
26
- MAJOR Rajout de la licence Apache 2.0
@@ -1,81 +0,0 @@
1
- # Contributors guide
2
-
3
- **Want to contribute?**
4
- We try to make it easy, and all contributions, even the smaller ones, are more than welcome.
5
- This includes bug reports, fixes, documentation, examples...
6
- But first, read this page (including the small print at the end).
7
-
8
- Contributions are available on https://github.com/e2e-test-quest/uuv
9
-
10
- ## Legal
11
-
12
- All original contributions to _UUV_ are licensed under the
13
- [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0),
14
- version 2.0 or later.
15
-
16
- All contributions are subject to the [Developer Certificate of Origin](https://developercertificate.org/) (DCO).
17
- The DCO is a lightweight way for contributors to certify that they wrote or otherwise have the right to submit the code they are contributing to the project.
18
- The DCO text is also included verbatim in the [DCO.txt](DCO.txt) file in the root directory of the repository.
19
-
20
- Contributors **must** _sign-off_ that they adhere to these requirements by adding a `Signed-off-by` line to commit messages, as shown below:
21
-
22
- ```text
23
- This is the commit message
24
-
25
- Signed-off-by: Joe Dev <joe.dev@developer.example.org>
26
- ```
27
-
28
- Git has a handy [`-s` command line option](https://git-scm.com/docs/git-commit#Documentation/git-commit.txt---signoff) to append this automatically to your commit message:
29
-
30
- ```bash
31
- $ git commit -s -m 'This is the commit message'
32
- ```
33
-
34
- ## Reporting an issue
35
-
36
- This project uses GitLab issues to manage the issues.
37
-
38
- Before creating an issue:
39
-
40
- 1. upgrade your project to the latest released template version, and check whether your bug is still present,
41
- 2. have a look in the opened issues if your problem is already known/tracked, and possibly contribute to the thread with your own information.
42
-
43
- If none of the above was met, open an issue directly in GitLab, select the appropriate issue template and fill-in each section when applicable.
44
-
45
- ## Submitting a code change
46
-
47
- ### Git Setup
48
-
49
- Before contributing, make sure you have set up your Git authorship correctly:
50
-
51
- ```bash
52
- git config --global user.name "Your Full Name"
53
- git config --global user.email your.email@example.com
54
- ```
55
-
56
- ### Workflow
57
-
58
- All submissions, including submissions by project members, need to be reviewed before being merged.
59
-
60
- To contribute:
61
-
62
- 1. Create an issue describing the bug or enhancement you want to propose (select the right issue template).
63
- 2. Make sure the issue has been reviewed and agreed.
64
- 3. Create a Merge Request, from your **own** fork (see [forking workflow](https://docs.github.com/en/get-started/quickstart/fork-a-repo) documentation).
65
- Don't hesitate to mark your MR as `Draft` as long as you think it's not ready to be reviewed.
66
-
67
- ### Git Commit Conventions
68
-
69
- In addition to being signed-off according the [Developer Certificate of Origin](https://developercertificate.org/) (see above),
70
- Git commits in _UUV_ shall be:
71
-
72
- 1. **atomic** (1 commit `=` 1 and only 1 _thing_),
73
- 2. **semantic** (using [semantic-release commit message syntax](https://semantic-release.gitbook.io/semantic-release/#commit-message-format)).
74
- 3. **pattern**
75
- - **SCOPE** : one of (UUV, COMMONS, CYPRESS, PLAYWRIGHT, ASSISTANT, EXTENSION, DOCS)
76
- - ***TYPE*** : one of (FEAT, FIX, TECH, REFACTOR)
77
- - [**SCOPE**] [***TYPE***] #issue_identifier: commit message
78
- - Example :
79
- ```bash
80
- [CYPRESS] [FEAT] #51: upgrade library @badeball/cypress-cucumber-preprocessor version
81
- ```
package/dist/README.md DELETED
@@ -1,62 +0,0 @@
1
-
2
-
3
- # @uuv/runner-playwright
4
- <p align="center">
5
- <a href="https://e2e-test-quest.github.io/uuv/">
6
- <picture>
7
- <img alt="UUV Logo" src="https://e2e-test-quest.github.io/uuv/img/uuv.png">
8
- </picture>
9
- </a>
10
- </p>
11
- <p align="center">
12
- <a href="https://e2e-test-quest.github.io/uuv/"><img src="https://img.shields.io/badge/documentation-black?&style=for-the-badge&logo=github&logoColor=white" alt="documentation"/></a>
13
- </p>
14
-
15
- <h3 align="center">
16
- Test as final user
17
- </h3>
18
-
19
- <p align="center">
20
- Make test writing fast, understandable by any human understanding English or French.
21
- </p>
22
-
23
- <p align="center">
24
- <a href="https://www.npmjs.com/package/@uuv/playwright">
25
- <img src="https://img.shields.io/badge/available%20on%20npm-grey?logo=npm" alt="npm"/>
26
- </a>
27
- <a href="https://playwright.dev/">
28
- <img src="https://img.shields.io/badge/tested with-playwright-1dbb68?logo=playwright" alt="playwright"/>
29
- </a>
30
- <a href="https://testing-library.com/">
31
- <img src="https://img.shields.io/badge/tested%20with-testing%20library-ED3B3A?logo=testing-library" alt="testing-library"/>
32
- </a>
33
- <a href="https://cucumber.io/">
34
- <img src="https://img.shields.io/badge/tested%20with-cucumber-1dbb68?logo=cucumber" alt="cucumber"/>
35
- </a><br />
36
- </p>
37
-
38
- ## What is @uuv/playwright ?
39
-
40
- <p align="center">
41
-
42
- The `@uuv` library (User centric Usecases Validator) is an ecosystem that simplifies the writing of End to End tests in a BDD approach and a user-centric way.
43
- We can use the playwright engine to run test or cypress with [@uuv/cypress](https://www.npmjs.com/package/@uuv/cypress)
44
- </p>
45
-
46
- ## Installing
47
-
48
- <a href="https://e2e-test-quest.github.io/uuv/docs/getting-started/installation#playwright"><img src="https://img.shields.io/badge/Install%20Playwright%20doc-red?&style=for-the-badge&logo=github&logoColor=white" alt="documentation for install uuv playwright"/></a>
49
-
50
- <a href="https://e2e-test-quest.github.io/uuv/docs/getting-started/configuration"><img src="https://img.shields.io/badge/Configure%20Playwright%20doc-red?&style=for-the-badge&logo=github&logoColor=white" alt="documentation for configure uuv playwright"/></a>
51
-
52
- <a href="https://e2e-test-quest.github.io/uuv/docs/test/first-test"><img src="https://img.shields.io/badge/Write%20test%20doc-red?&style=for-the-badge&logo=github&logoColor=white" alt="documentation for write test"/></a>
53
-
54
- <a href="https://e2e-test-quest.github.io/uuv/docs/test/running-test"><img src="https://img.shields.io/badge/Run%20test%20doc-red?&style=for-the-badge&logo=github&logoColor=white" alt="documentation for run test"/></a>
55
-
56
- ## License
57
-
58
- [<a href="https://www.npmjs.com/package/@uuv/playwright">
59
- <img src="https://img.shields.io/badge/license-Apache%202.0-blue" alt="npm"/>
60
- </a>](https://www.apache.org/licenses/LICENSE-2.0)
61
-
62
- This project is licensed under the terms of the [Apache 2.0 license](https://www.apache.org/licenses/LICENSE-2.0).