@uuv/cypress 1.3.3 → 1.4.1
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/CHANGELOG.md +21 -0
- package/README.md +110 -25
- package/dist/lib/uuv-cli.js +1 -1
- package/package.json +12 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## [1.4.1](https://github.com/e2e-test-quest/uuv/compare/runner-cypress-v1.4.0...runner-cypress-v1.4.1) (2023-05-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **assistant:** fix assistant css problem, [#120](https://github.com/e2e-test-quest/uuv/issues/120) ([026d66a](https://github.com/e2e-test-quest/uuv/commit/026d66ad6ad7e9090282f1734335c5a7b1e417c6))
|
|
7
|
+
* release 1.4.0 package.json and rchangelog was not updated, [#117](https://github.com/e2e-test-quest/uuv/issues/117) ([cd7723d](https://github.com/e2e-test-quest/uuv/commit/cd7723d6d790dd5fd928a5d9d41bfd075159378a))
|
|
8
|
+
* remove explicit plugin @semantic-release/git and just set commit message, [#117](https://github.com/e2e-test-quest/uuv/issues/117) ([ac1f818](https://github.com/e2e-test-quest/uuv/commit/ac1f8188cccbcb224acb15180cd0bd131aaa6cd1))
|
|
9
|
+
|
|
10
|
+
# [1.4.0](https://github.com/e2e-test-quest/uuv/compare/runner-cypress-v1.3.3...runner-cypress-v1.4.0) (2023-05-16)
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **runner-commons:** restructure documentation, [#112](https://github.com/e2e-test-quest/uuv/issues/112) ([f5db612](https://github.com/e2e-test-quest/uuv/commit/f5db612da3c31d2e6f4a3f647546167ebcbddaa5))
|
|
15
|
+
* **runner-cypress:** add benefit block [#112](https://github.com/e2e-test-quest/uuv/issues/112) ([04cf36f](https://github.com/e2e-test-quest/uuv/commit/04cf36fd0e43614ae801bb08bf514a4ba3cca975))
|
|
16
|
+
* **runner-cypress:** restructure documentation, [#112](https://github.com/e2e-test-quest/uuv/issues/112) ([43353a8](https://github.com/e2e-test-quest/uuv/commit/43353a88499e3270fa64c518b7332541e3a01652))
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* **runner-playwright:** add error details and screenshot to report, fixes [#110](https://github.com/e2e-test-quest/uuv/issues/110) ([3c4a3cd](https://github.com/e2e-test-quest/uuv/commit/3c4a3cd192b90242dd07bbdc4bb3ece780ee0c40))
|
|
21
|
+
|
|
1
22
|
## [1.3.3](https://github.com/e2e-test-quest/uuv/compare/runner-cypress-v1.3.2...runner-cypress-v1.3.3) (2023-05-15)
|
|
2
23
|
|
|
3
24
|
|
package/README.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
# @uuv/cypress
|
|
2
3
|
<p align="center">
|
|
3
4
|
<a href="https://e2e-test-quest.github.io/uuv/">
|
|
4
5
|
<picture>
|
|
@@ -6,9 +7,6 @@
|
|
|
6
7
|
</picture>
|
|
7
8
|
</a>
|
|
8
9
|
</p>
|
|
9
|
-
<p align="center">
|
|
10
|
-
<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>
|
|
11
|
-
</p>
|
|
12
10
|
|
|
13
11
|
<h3 align="center">
|
|
14
12
|
Test as final user
|
|
@@ -33,22 +31,40 @@ Make test writing fast, understandable by any human understanding English or Fre
|
|
|
33
31
|
</a><br />
|
|
34
32
|
</p>
|
|
35
33
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
</
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
34
|
+
## Benefits
|
|
35
|
+
- If used correctly, integrates accessibility from the development stage
|
|
36
|
+
- A living documentation is possible because we propose an unified language for developers and non-developers with a rich dictionary of ready-to-use sentences
|
|
37
|
+
- A wizard that facilitates the writing of tests by suggesting the most accessible sentences
|
|
38
|
+
- Integrates several runtime engines: Cypress / Playwright
|
|
39
|
+
- User-friendly and standardized execution report
|
|
40
|
+
### <u>Comparison</u>
|
|
41
|
+
| Criteria | Cypress | Playwright | Testing library | UUV |
|
|
42
|
+
|:-: |:-: |:-: |:-: |:-: |
|
|
43
|
+
| User centrism | :x: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
|
|
44
|
+
| Native accessibility | :x: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
|
|
45
|
+
| Easy setup configuration for BDD test | :warning: | :warning: | :heavy_minus_sign: | :heavy_check_mark: |
|
|
46
|
+
| Understandable by everyone <br> (included non dev) | :x: | :x: | :x: | :heavy_check_mark: |
|
|
47
|
+
|
|
48
|
+
### <u>Syntax example</u>
|
|
49
|
+
With this dom example :
|
|
50
|
+
```html
|
|
51
|
+
<body>
|
|
52
|
+
<h1>Result<h1>
|
|
53
|
+
</body>
|
|
54
|
+
```
|
|
55
|
+
we see that the sentence proposed by **UUV is the most understandable** of all
|
|
56
|
+
| Library | Syntax |
|
|
57
|
+
|:--|:--|
|
|
58
|
+
| Cypress | cy.get('result').should('exist') |
|
|
59
|
+
| Playwright| await expect(page.getByTitle('Result')).toHaveCount(1) |
|
|
60
|
+
| Testing library | expect(screen.getByTitle(/Result/i)).toBeTruthy() |
|
|
61
|
+
| UUV | Then I should see a title named "Result"|
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
## Documentation
|
|
65
|
+
<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>
|
|
66
|
+
|
|
67
|
+
## What is @uuv/cypress?
|
|
52
68
|
|
|
53
69
|
<p align="center">
|
|
54
70
|
|
|
@@ -56,20 +72,89 @@ The `@uuv` library (User centric Usecases Validator) is an ecosystem that simpli
|
|
|
56
72
|
We can use the cypress engine to run test or playwright with [@uuv/playwright](https://www.npmjs.com/package/@uuv/playwright)
|
|
57
73
|
</p>
|
|
58
74
|
|
|
59
|
-
##
|
|
75
|
+
## Demonstration
|
|
76
|
+
|
|
77
|
+
### Demo in english
|
|
78
|
+
<a href="https://player.vimeo.com/video/822253247?texttrack=en&h=617306172d&badge=0&autopause=0&player_id=0&app_id=58479" rel="nofollow">
|
|
79
|
+
<img alt="runner-cypress in english" src="https://e2e-test-quest.github.io/uuv/img/cypress/screenshot.png" style="max-width: 100%;" width="75%" height="75%" />
|
|
80
|
+
</a>
|
|
81
|
+
|
|
82
|
+
### Demo in french
|
|
83
|
+
<a href="https://player.vimeo.com/video/822253247?texttrack=fr&h=617306172d&badge=0&autopause=0&player_id=0&app_id=58479" rel="nofollow">
|
|
84
|
+
<img alt="runner-cypress in french" src="https://e2e-test-quest.github.io/uuv/img/cypress/screenshot.png" style="max-width: 100%;" width="75%" height="75%" />
|
|
85
|
+
</a>
|
|
60
86
|
|
|
61
|
-
|
|
87
|
+
## Installation
|
|
62
88
|
|
|
89
|
+
```bash
|
|
90
|
+
npm install --save-dev @uuv/cypress
|
|
91
|
+
```
|
|
92
|
+
or
|
|
93
|
+
```bash
|
|
94
|
+
yarn add -D @uuv/cypress
|
|
95
|
+
```
|
|
96
|
+
## Configuration (optional)
|
|
63
97
|
<a href="https://e2e-test-quest.github.io/uuv/docs/getting-started/configuration"><img src="https://img.shields.io/badge/Configure%20cypress%20doc-red?&style=for-the-badge&logo=github&logoColor=white" alt="documentation for configure uuv cypress"/></a>
|
|
64
98
|
|
|
99
|
+
## Usage
|
|
100
|
+
### Scenarios example
|
|
101
|
+
You can find test examples here : [google.feature](https://github.com/e2e-test-quest/uuv/example/google.fr.feature)
|
|
102
|
+
|
|
103
|
+
### Write test
|
|
104
|
+
To write your first test, create the file `uuv/e2e/first-test.feature` in the project root with the following content :
|
|
105
|
+
```gherkin
|
|
106
|
+
Feature: Hello World
|
|
107
|
+
|
|
108
|
+
Scenario: Search - Successful case
|
|
109
|
+
When I visit path "/"
|
|
110
|
+
Then I should see an element with role "heading" and name "My app title"
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
For more details, please go to the documentation:
|
|
65
114
|
<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>
|
|
66
115
|
|
|
116
|
+
### Run test
|
|
117
|
+
|
|
118
|
+
#### browser mode
|
|
119
|
+
```bash
|
|
120
|
+
npx uuv open
|
|
121
|
+
```
|
|
122
|
+
or
|
|
123
|
+
```bash
|
|
124
|
+
yarn uuv open
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
#### headless mode
|
|
128
|
+
##### without args
|
|
129
|
+
```bash
|
|
130
|
+
npx uuv e2e
|
|
131
|
+
```
|
|
132
|
+
or
|
|
133
|
+
```bash
|
|
134
|
+
yarn uuv e2e
|
|
135
|
+
```
|
|
136
|
+
##### with args
|
|
137
|
+
```bash
|
|
138
|
+
npx uuv e2e --browser=edge --env="{'TAGS':'@mobile'}" --generateHtmlReport
|
|
139
|
+
```
|
|
140
|
+
or
|
|
141
|
+
```bash
|
|
142
|
+
yarn uuv e2e --browser=edge --env="{'TAGS':'@mobile'}" --generateHtmlReport
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
For more details, please go to the documentation:
|
|
67
146
|
<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>
|
|
68
147
|
|
|
69
148
|
## License
|
|
70
149
|
|
|
71
|
-
[<a href="https://
|
|
72
|
-
<img src="https://img.shields.io/badge/license-Apache%202.0-blue" alt="
|
|
150
|
+
[<a href="https://github.com/e2e-test-quest/uuv/blob/main/LICENSE">
|
|
151
|
+
<img src="https://img.shields.io/badge/license-Apache%202.0-blue" alt="apache license"/>
|
|
73
152
|
</a>](https://www.apache.org/licenses/LICENSE-2.0)
|
|
74
153
|
|
|
75
|
-
This project is licensed under the terms of the [Apache 2.0 license](https://
|
|
154
|
+
This project is licensed under the terms of the [Apache 2.0 license](https://github.com/e2e-test-quest/uuv/blob/main/LICENSE).
|
|
155
|
+
|
|
156
|
+
## Authors
|
|
157
|
+
|
|
158
|
+
- [@luifr10](https://github.com/luifr10)
|
|
159
|
+
- [@stanlee974](https://github.com/stanlee974)
|
|
160
|
+
|
package/dist/lib/uuv-cli.js
CHANGED
|
@@ -130,7 +130,7 @@ async function main() {
|
|
|
130
130
|
return command;
|
|
131
131
|
}
|
|
132
132
|
function printBanner(getCurrentVersion) {
|
|
133
|
-
console.log(chalk_1.default.blueBright(figlet_1.default.textSync("UUV", {
|
|
133
|
+
console.log(chalk_1.default.blueBright(figlet_1.default.textSync("UUV - Cypress", {
|
|
134
134
|
font: "Big",
|
|
135
135
|
horizontalLayout: "default",
|
|
136
136
|
verticalLayout: "default",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uuv/cypress",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.1",
|
|
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 cypress.",
|
|
@@ -15,18 +15,22 @@
|
|
|
15
15
|
},
|
|
16
16
|
"keywords": [
|
|
17
17
|
"uuv",
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"end
|
|
18
|
+
"e2e",
|
|
19
|
+
"end2end",
|
|
20
|
+
"end 2 end",
|
|
21
21
|
"test",
|
|
22
22
|
"testing",
|
|
23
|
-
"cypress",
|
|
24
|
-
"testing-library",
|
|
25
23
|
"accessibility",
|
|
26
24
|
"accessibilite",
|
|
27
25
|
"a11y",
|
|
26
|
+
"cypress",
|
|
27
|
+
"playwright",
|
|
28
|
+
"testing-library",
|
|
28
29
|
"cucumber",
|
|
29
|
-
"gherkin"
|
|
30
|
+
"gherkin",
|
|
31
|
+
"bdd",
|
|
32
|
+
"tdd",
|
|
33
|
+
"acceptance"
|
|
30
34
|
],
|
|
31
35
|
"scripts": {
|
|
32
36
|
"generate:step-definitions": "ts-node generate-step-definitions.ts",
|
|
@@ -42,7 +46,7 @@
|
|
|
42
46
|
"@badeball/cypress-cucumber-preprocessor": "16.0.3",
|
|
43
47
|
"@cypress/webpack-preprocessor": "5.17.0",
|
|
44
48
|
"@testing-library/cypress": "9.0.0",
|
|
45
|
-
"@uuv/runner-commons": "1.
|
|
49
|
+
"@uuv/runner-commons": "1.4.1",
|
|
46
50
|
"axe-core": "4.7.0",
|
|
47
51
|
"chalk": "4.1.2",
|
|
48
52
|
"cucumber-json-report-formatter": "0.1.4",
|