@uuv/cypress 1.7.0 → 1.7.2
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 +65 -50
- package/CONTRIBUTING.md +1 -1
- package/README.md +11 -11
- package/dist/cucumber/uuv-custom-formatter.d.ts +6 -0
- package/dist/cucumber/uuv-custom-formatter.js +108 -0
- package/dist/lib/uuv-cli.js +5 -5
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,119 +1,134 @@
|
|
|
1
|
-
|
|
1
|
+
## [1.7.2](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v1.7.1...runner-cypress-v1.7.2) (2023-08-17)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* accept cucumber Rule keyword when generate json from ndjson for … ([#207](https://github.com/Orange-OpenSource/uuv/issues/207)) ([05bc903](https://github.com/Orange-OpenSource/uuv/commit/05bc90342ea2f7149109b5a12e428b04237bf00b))
|
|
7
|
+
* **runner-cypress:** relocate cypress-real-events dependency into project package.json, [#213](https://github.com/Orange-OpenSource/uuv/issues/213) ([ffca8dd](https://github.com/Orange-OpenSource/uuv/commit/ffca8dd21d3858d0020f6bf1974437bbf38fe6c4))
|
|
8
|
+
|
|
9
|
+
## [1.7.1](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v1.7.0...runner-cypress-v1.7.1) (2023-08-09)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **deps:** update dependency cypress to v12.17.3 ([35c812b](https://github.com/Orange-OpenSource/uuv/commit/35c812bdabd1a3a2d27e972d3bb5c9323497c449))
|
|
15
|
+
|
|
16
|
+
# [1.7.0](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v1.6.1...runner-cypress-v1.7.0) (2023-07-31)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* correct link markdown not formated, [#164](https://github.com/Orange-OpenSource/uuv/issues/164) ([470e6b6](https://github.com/Orange-OpenSource/uuv/commit/470e6b6b07ef43261d14b0e8986cac304daf29d8))
|
|
7
22
|
|
|
8
23
|
|
|
9
24
|
### Features
|
|
10
25
|
|
|
11
|
-
* add accessibility sentences, [#164](https://github.com/
|
|
12
|
-
* add accessibility tab and arrows, [#166](https://github.com/
|
|
13
|
-
* use accessibility sentences on cypress, [#164](https://github.com/
|
|
14
|
-
* use accessibility sentences on playwright, [#164](https://github.com/
|
|
26
|
+
* add accessibility sentences, [#164](https://github.com/Orange-OpenSource/uuv/issues/164) ([e55b2c6](https://github.com/Orange-OpenSource/uuv/commit/e55b2c647bec100294794fe34dabe582d2561643))
|
|
27
|
+
* add accessibility tab and arrows, [#166](https://github.com/Orange-OpenSource/uuv/issues/166) ([9b926cd](https://github.com/Orange-OpenSource/uuv/commit/9b926cd322049860a5f06810027dbeb7efe6d795))
|
|
28
|
+
* use accessibility sentences on cypress, [#164](https://github.com/Orange-OpenSource/uuv/issues/164) ([38fefc5](https://github.com/Orange-OpenSource/uuv/commit/38fefc5286cfd16c9693b8f6b0922679c1a9ca05))
|
|
29
|
+
* use accessibility sentences on playwright, [#164](https://github.com/Orange-OpenSource/uuv/issues/164) ([b273e84](https://github.com/Orange-OpenSource/uuv/commit/b273e842a1a6b82f1a9c707187aa3d176b7fcabc))
|
|
15
30
|
|
|
16
|
-
## [1.6.1](https://github.com/
|
|
31
|
+
## [1.6.1](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v1.6.0...runner-cypress-v1.6.1) (2023-07-30)
|
|
17
32
|
|
|
18
33
|
|
|
19
34
|
### Bug Fixes
|
|
20
35
|
|
|
21
|
-
* **deps:** update dependency @cucumber/cucumber to v9.3.0 ([212250b](https://github.com/
|
|
22
|
-
* **deps:** update dependency @cypress/webpack-preprocessor to v5.17.1 ([9570e56](https://github.com/
|
|
23
|
-
* **deps:** update dependency antd to v5.7.3 ([452fc3c](https://github.com/
|
|
24
|
-
* **deps:** update dependency axe-core to v4.7.2 ([965b9dc](https://github.com/
|
|
25
|
-
* **deps:** update dependency cypress to v12.17.2 ([49a3012](https://github.com/
|
|
26
|
-
* **deps:** update dependency nanoid to v3.3.6 ([82fa0c3](https://github.com/
|
|
27
|
-
* **deps:** update docusaurus monorepo to v2.4.1 ([9c0f5fb](https://github.com/
|
|
36
|
+
* **deps:** update dependency @cucumber/cucumber to v9.3.0 ([212250b](https://github.com/Orange-OpenSource/uuv/commit/212250be47e040e34de18af33986a1f26f7b00a2))
|
|
37
|
+
* **deps:** update dependency @cypress/webpack-preprocessor to v5.17.1 ([9570e56](https://github.com/Orange-OpenSource/uuv/commit/9570e5689387a2c770994576d779a34ff242ca76))
|
|
38
|
+
* **deps:** update dependency antd to v5.7.3 ([452fc3c](https://github.com/Orange-OpenSource/uuv/commit/452fc3c3861509e8aba46b3efa248f365bbfb747))
|
|
39
|
+
* **deps:** update dependency axe-core to v4.7.2 ([965b9dc](https://github.com/Orange-OpenSource/uuv/commit/965b9dcb1445c369c770ed056ab990e3f966197b))
|
|
40
|
+
* **deps:** update dependency cypress to v12.17.2 ([49a3012](https://github.com/Orange-OpenSource/uuv/commit/49a3012f7ebf0e6ecc879d21ff86147938967607))
|
|
41
|
+
* **deps:** update dependency nanoid to v3.3.6 ([82fa0c3](https://github.com/Orange-OpenSource/uuv/commit/82fa0c31207a9004a8b365fe0e92fcaac38e1be3))
|
|
42
|
+
* **deps:** update docusaurus monorepo to v2.4.1 ([9c0f5fb](https://github.com/Orange-OpenSource/uuv/commit/9c0f5fb6a641f54fc97d0940acfebdfb5106a790))
|
|
28
43
|
|
|
29
|
-
# [1.6.0](https://github.com/
|
|
44
|
+
# [1.6.0](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v1.5.0...runner-cypress-v1.6.0) (2023-07-18)
|
|
30
45
|
|
|
31
46
|
|
|
32
47
|
### Features
|
|
33
48
|
|
|
34
|
-
* add assistant-desktop to several docs, closes [#144](https://github.com/
|
|
49
|
+
* add assistant-desktop to several docs, closes [#144](https://github.com/Orange-OpenSource/uuv/issues/144) ([61dd396](https://github.com/Orange-OpenSource/uuv/commit/61dd3961fb5b8ca40e72762baf7b326686171788))
|
|
35
50
|
|
|
36
|
-
# [1.6.0](https://github.com/
|
|
51
|
+
# [1.6.0](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v1.5.0...runner-cypress-v1.6.0) (2023-07-17)
|
|
37
52
|
|
|
38
53
|
|
|
39
54
|
### Features
|
|
40
55
|
|
|
41
|
-
* add assistant-desktop to several docs, closes [#144](https://github.com/
|
|
56
|
+
* add assistant-desktop to several docs, closes [#144](https://github.com/Orange-OpenSource/uuv/issues/144) ([61dd396](https://github.com/Orange-OpenSource/uuv/commit/61dd3961fb5b8ca40e72762baf7b326686171788))
|
|
42
57
|
|
|
43
|
-
# [1.5.0](https://github.com/
|
|
58
|
+
# [1.5.0](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v1.4.3...runner-cypress-v1.5.0) (2023-07-02)
|
|
44
59
|
|
|
45
60
|
|
|
46
61
|
### Bug Fixes
|
|
47
62
|
|
|
48
|
-
* **assistant:** moving test app in component ([5bdc75b](https://github.com/
|
|
63
|
+
* **assistant:** moving test app in component ([5bdc75b](https://github.com/Orange-OpenSource/uuv/commit/5bdc75b9ae4aec75f7a944513af0d57a4107cefd))
|
|
49
64
|
|
|
50
65
|
|
|
51
66
|
### Features
|
|
52
67
|
|
|
53
|
-
* **assistant:** setting up electron, fixes [#132](https://github.com/
|
|
54
|
-
* setup assistant-electron package, [#132](https://github.com/
|
|
68
|
+
* **assistant:** setting up electron, fixes [#132](https://github.com/Orange-OpenSource/uuv/issues/132) ([6d6e99c](https://github.com/Orange-OpenSource/uuv/commit/6d6e99cbbdb498e1d5f24a0386e52ae38fa1b161))
|
|
69
|
+
* setup assistant-electron package, [#132](https://github.com/Orange-OpenSource/uuv/issues/132) ([76d69c2](https://github.com/Orange-OpenSource/uuv/commit/76d69c2b5d311b40cb42c9511d224d7911133e10))
|
|
55
70
|
|
|
56
|
-
## [1.4.3](https://github.com/
|
|
71
|
+
## [1.4.3](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v1.4.2...runner-cypress-v1.4.3) (2023-05-29)
|
|
57
72
|
|
|
58
73
|
|
|
59
74
|
### Bug Fixes
|
|
60
75
|
|
|
61
|
-
* **runner-playwright:** regenerate package-lock.json to fix lint, [#109](https://github.com/
|
|
76
|
+
* **runner-playwright:** regenerate package-lock.json to fix lint, [#109](https://github.com/Orange-OpenSource/uuv/issues/109) ([70044df](https://github.com/Orange-OpenSource/uuv/commit/70044dfd9efb2c6776a85cadd18966610d2d61f2))
|
|
62
77
|
|
|
63
|
-
## [1.4.2](https://github.com/
|
|
78
|
+
## [1.4.2](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v1.4.1...runner-cypress-v1.4.2) (2023-05-19)
|
|
64
79
|
|
|
65
80
|
|
|
66
81
|
### Bug Fixes
|
|
67
82
|
|
|
68
|
-
* fix example url in readme, [#100](https://github.com/
|
|
83
|
+
* fix example url in readme, [#100](https://github.com/Orange-OpenSource/uuv/issues/100) ([c0609dc](https://github.com/Orange-OpenSource/uuv/commit/c0609dc6eee36e842e3dc74095a338d48b5248cc))
|
|
69
84
|
|
|
70
|
-
## [1.4.1](https://github.com/
|
|
85
|
+
## [1.4.1](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v1.4.0...runner-cypress-v1.4.1) (2023-05-19)
|
|
71
86
|
|
|
72
87
|
|
|
73
88
|
### Bug Fixes
|
|
74
89
|
|
|
75
|
-
* **assistant:** fix assistant css problem, [#120](https://github.com/
|
|
76
|
-
* release 1.4.0 package.json and rchangelog was not updated, [#117](https://github.com/
|
|
77
|
-
* remove explicit plugin @semantic-release/git and just set commit message, [#117](https://github.com/
|
|
90
|
+
* **assistant:** fix assistant css problem, [#120](https://github.com/Orange-OpenSource/uuv/issues/120) ([026d66a](https://github.com/Orange-OpenSource/uuv/commit/026d66ad6ad7e9090282f1734335c5a7b1e417c6))
|
|
91
|
+
* release 1.4.0 package.json and rchangelog was not updated, [#117](https://github.com/Orange-OpenSource/uuv/issues/117) ([cd7723d](https://github.com/Orange-OpenSource/uuv/commit/cd7723d6d790dd5fd928a5d9d41bfd075159378a))
|
|
92
|
+
* remove explicit plugin @semantic-release/git and just set commit message, [#117](https://github.com/Orange-OpenSource/uuv/issues/117) ([ac1f818](https://github.com/Orange-OpenSource/uuv/commit/ac1f8188cccbcb224acb15180cd0bd131aaa6cd1))
|
|
78
93
|
|
|
79
|
-
# [1.4.0](https://github.com/
|
|
94
|
+
# [1.4.0](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v1.3.3...runner-cypress-v1.4.0) (2023-05-16)
|
|
80
95
|
|
|
81
96
|
### Bug Fixes
|
|
82
97
|
|
|
83
|
-
* **runner-commons:** restructure documentation, [#112](https://github.com/
|
|
84
|
-
* **runner-cypress:** add benefit block [#112](https://github.com/
|
|
85
|
-
* **runner-cypress:** restructure documentation, [#112](https://github.com/
|
|
98
|
+
* **runner-commons:** restructure documentation, [#112](https://github.com/Orange-OpenSource/uuv/issues/112) ([f5db612](https://github.com/Orange-OpenSource/uuv/commit/f5db612da3c31d2e6f4a3f647546167ebcbddaa5))
|
|
99
|
+
* **runner-cypress:** add benefit block [#112](https://github.com/Orange-OpenSource/uuv/issues/112) ([04cf36f](https://github.com/Orange-OpenSource/uuv/commit/04cf36fd0e43614ae801bb08bf514a4ba3cca975))
|
|
100
|
+
* **runner-cypress:** restructure documentation, [#112](https://github.com/Orange-OpenSource/uuv/issues/112) ([43353a8](https://github.com/Orange-OpenSource/uuv/commit/43353a88499e3270fa64c518b7332541e3a01652))
|
|
86
101
|
|
|
87
102
|
### Features
|
|
88
103
|
|
|
89
|
-
* **runner-playwright:** add error details and screenshot to report, fixes [#110](https://github.com/
|
|
104
|
+
* **runner-playwright:** add error details and screenshot to report, fixes [#110](https://github.com/Orange-OpenSource/uuv/issues/110) ([3c4a3cd](https://github.com/Orange-OpenSource/uuv/commit/3c4a3cd192b90242dd07bbdc4bb3ece780ee0c40))
|
|
90
105
|
|
|
91
|
-
## [1.3.3](https://github.com/
|
|
106
|
+
## [1.3.3](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v1.3.2...runner-cypress-v1.3.3) (2023-05-15)
|
|
92
107
|
|
|
93
108
|
|
|
94
109
|
### Bug Fixes
|
|
95
110
|
|
|
96
|
-
* **runner-playwright:** fix workspace lint during ci, [#108](https://github.com/
|
|
111
|
+
* **runner-playwright:** fix workspace lint during ci, [#108](https://github.com/Orange-OpenSource/uuv/issues/108) ([a3ac0d6](https://github.com/Orange-OpenSource/uuv/commit/a3ac0d68d27c34f36237b6f74b94e160b7cde9b8))
|
|
97
112
|
|
|
98
|
-
## [1.3.2](https://github.com/
|
|
113
|
+
## [1.3.2](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v1.3.1...runner-cypress-v1.3.2) (2023-05-11)
|
|
99
114
|
|
|
100
115
|
|
|
101
116
|
### Bug Fixes
|
|
102
117
|
|
|
103
|
-
* **runner-cypress:** add lint script [#8](https://github.com/
|
|
104
|
-
* **runner-cypress:** modify doc for npmjs [#94](https://github.com/
|
|
105
|
-
* **runner-playwright:** update @cucumber/cucumber dep version, [#93](https://github.com/
|
|
118
|
+
* **runner-cypress:** add lint script [#8](https://github.com/Orange-OpenSource/uuv/issues/8) ([78c43d1](https://github.com/Orange-OpenSource/uuv/commit/78c43d1406709953086793298132f8fb85e68ba8))
|
|
119
|
+
* **runner-cypress:** modify doc for npmjs [#94](https://github.com/Orange-OpenSource/uuv/issues/94) ([b7ba332](https://github.com/Orange-OpenSource/uuv/commit/b7ba332900081318984e495d563c1477ffacd801))
|
|
120
|
+
* **runner-playwright:** update @cucumber/cucumber dep version, [#93](https://github.com/Orange-OpenSource/uuv/issues/93) ([a891a70](https://github.com/Orange-OpenSource/uuv/commit/a891a70daad1cb5d7d34f25097a31d89f92b92c6))
|
|
106
121
|
|
|
107
|
-
## [1.3.1](https://github.com/
|
|
122
|
+
## [1.3.1](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v1.3.0...runner-cypress-v1.3.1) (2023-05-09)
|
|
108
123
|
|
|
109
124
|
|
|
110
125
|
### Bug Fixes
|
|
111
126
|
|
|
112
|
-
* **runner-commons:** fix npm documentation, [#87](https://github.com/
|
|
113
|
-
* **runner-commons:** modify keyword for npmjs, [#87](https://github.com/
|
|
114
|
-
* **runner-cypress:** fix npm documentation, [#87](https://github.com/
|
|
115
|
-
* **runner-cypress:** modify keyword for npmjs, [#87](https://github.com/
|
|
116
|
-
* **runner-cypress:** move webpack dep from devDeps to deps ([2e96fa7](https://github.com/
|
|
127
|
+
* **runner-commons:** fix npm documentation, [#87](https://github.com/Orange-OpenSource/uuv/issues/87) ([ba7394c](https://github.com/Orange-OpenSource/uuv/commit/ba7394cd755e350fd5a5964aed26435e5979e77d))
|
|
128
|
+
* **runner-commons:** modify keyword for npmjs, [#87](https://github.com/Orange-OpenSource/uuv/issues/87) ([392c4d0](https://github.com/Orange-OpenSource/uuv/commit/392c4d0337179dae2c2a96c26dc2cc32e0ad87b3))
|
|
129
|
+
* **runner-cypress:** fix npm documentation, [#87](https://github.com/Orange-OpenSource/uuv/issues/87) ([1ccef97](https://github.com/Orange-OpenSource/uuv/commit/1ccef97182614635050defdccbe8838df2603247))
|
|
130
|
+
* **runner-cypress:** modify keyword for npmjs, [#87](https://github.com/Orange-OpenSource/uuv/issues/87) ([080f82d](https://github.com/Orange-OpenSource/uuv/commit/080f82d92c376b0d30ee2fb3473a07d5fc1f0d73))
|
|
131
|
+
* **runner-cypress:** move webpack dep from devDeps to deps ([2e96fa7](https://github.com/Orange-OpenSource/uuv/commit/2e96fa77d8b9845d6df899603dee087aad13e8ef))
|
|
117
132
|
|
|
118
133
|
# Change Log
|
|
119
134
|
All notable changes to this project will be documented in this file.
|
|
@@ -124,9 +139,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
124
139
|
## [1.2.0-beta-20230424] - 2023-04-24
|
|
125
140
|
|
|
126
141
|
### Added
|
|
127
|
-
- [#4](https://github.com/
|
|
142
|
+
- [#4](https://github.com/Orange-OpenSource/uuv/issues/4)
|
|
128
143
|
MINOR Amélioration du scoring npm
|
|
129
|
-
- [#3](https://github.com/
|
|
144
|
+
- [#3](https://github.com/Orange-OpenSource/uuv/issues/3)
|
|
130
145
|
MAJOR Initialisation du pipeline
|
|
131
|
-
- [#1](https://github.com/
|
|
146
|
+
- [#1](https://github.com/Orange-OpenSource/uuv/issues/1)
|
|
132
147
|
MAJOR Rajout de la licence Apache 2.0
|
package/CONTRIBUTING.md
CHANGED
|
@@ -5,7 +5,7 @@ We try to make it easy, and all contributions, even the smaller ones, are more t
|
|
|
5
5
|
This includes bug reports, fixes, documentation, examples...
|
|
6
6
|
But first, read this page (including the small print at the end).
|
|
7
7
|
|
|
8
|
-
Contributions are available on https://github.com/
|
|
8
|
+
Contributions are available on https://github.com/Orange-OpenSource/uuv
|
|
9
9
|
|
|
10
10
|
## Legal
|
|
11
11
|
|
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
# @uuv/cypress
|
|
3
3
|
<p align="center">
|
|
4
|
-
<a href="https://
|
|
4
|
+
<a href="https://orange-opensource.github.io/uuv/">
|
|
5
5
|
<picture>
|
|
6
|
-
<img alt="UUV Logo" src="https://
|
|
6
|
+
<img alt="UUV Logo" src="https://orange-opensource.github.io/uuv/img/uuv.png">
|
|
7
7
|
</picture>
|
|
8
8
|
</a>
|
|
9
9
|
</p>
|
|
@@ -62,7 +62,7 @@ we see that the sentence proposed by **UUV is the most understandable** of all
|
|
|
62
62
|
|
|
63
63
|
|
|
64
64
|
## Documentation
|
|
65
|
-
<a href="https://
|
|
65
|
+
<a href="https://orange-opensource.github.io/uuv/"><img src="https://img.shields.io/badge/documentation-black?&style=for-the-badge&logo=github&logoColor=white" alt="documentation"/></a>
|
|
66
66
|
|
|
67
67
|
## What is @uuv/cypress?
|
|
68
68
|
|
|
@@ -76,12 +76,12 @@ We can use the cypress engine to run test or playwright with [@uuv/playwright](h
|
|
|
76
76
|
|
|
77
77
|
### Demo in english
|
|
78
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://
|
|
79
|
+
<img alt="runner-cypress in english" src="https://orange-opensource.github.io/uuv/img/cypress/screenshot.png" style="max-width: 100%;" width="75%" height="75%" />
|
|
80
80
|
</a>
|
|
81
81
|
|
|
82
82
|
### Demo in french
|
|
83
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://
|
|
84
|
+
<img alt="runner-cypress in french" src="https://orange-opensource.github.io/uuv/img/cypress/screenshot.png" style="max-width: 100%;" width="75%" height="75%" />
|
|
85
85
|
</a>
|
|
86
86
|
|
|
87
87
|
## Installation
|
|
@@ -94,11 +94,11 @@ or
|
|
|
94
94
|
yarn add -D @uuv/cypress
|
|
95
95
|
```
|
|
96
96
|
## Configuration (optional)
|
|
97
|
-
<a href="https://
|
|
97
|
+
<a href="https://orange-opensource.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>
|
|
98
98
|
|
|
99
99
|
## Usage
|
|
100
100
|
### Scenarios example
|
|
101
|
-
You can find test examples here : [weather-app.feature](https://github.com/
|
|
101
|
+
You can find test examples here : [weather-app.feature](https://github.com/Orange-OpenSource/uuv/blob/main/example/weather-app.feature)
|
|
102
102
|
|
|
103
103
|
### Write test
|
|
104
104
|
To write your first test, create the file `uuv/e2e/first-test.feature` in the project root with the following content :
|
|
@@ -112,7 +112,7 @@ To write your first test, create the file `uuv/e2e/first-test.feature` in the pr
|
|
|
112
112
|
|
|
113
113
|
For more details, please go to the documentation:
|
|
114
114
|
|
|
115
|
-
<a href="https://
|
|
115
|
+
<a href="https://orange-opensource.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>
|
|
116
116
|
|
|
117
117
|
### Run test
|
|
118
118
|
|
|
@@ -145,15 +145,15 @@ yarn uuv e2e --browser=edge --env="{'TAGS':'@mobile'}" --generateHtmlReport
|
|
|
145
145
|
|
|
146
146
|
For more details, please go to the documentation:
|
|
147
147
|
|
|
148
|
-
<a href="https://
|
|
148
|
+
<a href="https://orange-opensource.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>
|
|
149
149
|
|
|
150
150
|
## License
|
|
151
151
|
|
|
152
|
-
[<a href="https://github.com/
|
|
152
|
+
[<a href="https://github.com/Orange-OpenSource/uuv/blob/main/LICENSE">
|
|
153
153
|
<img src="https://img.shields.io/badge/license-MIT-blue" alt="MIT license"/>
|
|
154
154
|
</a>](https://spdx.org/licenses/MIT.html)
|
|
155
155
|
|
|
156
|
-
This project is licensed under the terms of the [MIT license](https://github.com/
|
|
156
|
+
This project is licensed under the terms of the [MIT license](https://github.com/Orange-OpenSource/uuv/blob/main/LICENSE).
|
|
157
157
|
|
|
158
158
|
## Authors
|
|
159
159
|
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UuvCustomFormatter = void 0;
|
|
4
|
+
const cucumber_json_report_formatter_1 = require("cucumber-json-report-formatter");
|
|
5
|
+
// FIXME remove this class when the PR https://github.com/vrymar/cucumber-json-report-formatter/pull/20 will be merged
|
|
6
|
+
class UuvCustomFormatter extends cucumber_json_report_formatter_1.Formatter {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
}
|
|
10
|
+
async parseCucumberJson(sourceFile, outputFile) {
|
|
11
|
+
console.info(`Start formatting file '${sourceFile}' into '${outputFile}'`);
|
|
12
|
+
const report = await this.helper.readFileIntoJson(sourceFile);
|
|
13
|
+
const gherkinDocumentJson = this.helper.getJsonFromArray(report, "gherkinDocument");
|
|
14
|
+
const cucumberReport = [];
|
|
15
|
+
gherkinDocumentJson.forEach(gherkinJson => {
|
|
16
|
+
let gherkinDocument;
|
|
17
|
+
try {
|
|
18
|
+
gherkinDocument = JSON.parse(gherkinJson).gherkinDocument;
|
|
19
|
+
}
|
|
20
|
+
catch (err) {
|
|
21
|
+
console.error("Error parsing JSON string.", err);
|
|
22
|
+
}
|
|
23
|
+
const feature = gherkinDocument.feature;
|
|
24
|
+
const featureChildren = feature.children;
|
|
25
|
+
const scenariosJson = [];
|
|
26
|
+
const background = {};
|
|
27
|
+
featureChildren.forEach(featureChild => {
|
|
28
|
+
if (featureChild.rule) {
|
|
29
|
+
featureChild.rule.steps = [];
|
|
30
|
+
featureChild.rule.children.forEach(ruleChildren => {
|
|
31
|
+
this.buildAndAddScenario(ruleChildren, report, background, feature, scenariosJson, featureChild.rule);
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
this.buildAndAddScenario(featureChild, report, background, feature, scenariosJson, undefined);
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
const rootJson = {
|
|
39
|
+
comments: this.getComments(gherkinDocument.comments),
|
|
40
|
+
description: gherkinDocument.feature.description,
|
|
41
|
+
elements: scenariosJson,
|
|
42
|
+
id: feature.name,
|
|
43
|
+
keyword: feature.keyword,
|
|
44
|
+
line: feature.location.line,
|
|
45
|
+
name: feature.name,
|
|
46
|
+
uri: gherkinDocument.uri,
|
|
47
|
+
tags: this.getTags(gherkinDocument.feature.tags)
|
|
48
|
+
};
|
|
49
|
+
cucumberReport.push(rootJson);
|
|
50
|
+
});
|
|
51
|
+
await this.validateReportSchema(report);
|
|
52
|
+
const reportString = JSON.stringify(cucumberReport);
|
|
53
|
+
console.info(`Finished formatting file '${sourceFile}'`);
|
|
54
|
+
this.helper.writeFile(outputFile, reportString);
|
|
55
|
+
}
|
|
56
|
+
buildAndAddScenario(child, report, background, feature, scenariosJson, rule) {
|
|
57
|
+
let steps = [];
|
|
58
|
+
let stepJson = {};
|
|
59
|
+
// Background
|
|
60
|
+
if (child.scenario === undefined) {
|
|
61
|
+
child.background.steps.forEach(step => {
|
|
62
|
+
stepJson = this.createStepJson(step, report, 0);
|
|
63
|
+
steps.push(stepJson);
|
|
64
|
+
});
|
|
65
|
+
background = this.createScenarioJson(feature, child.background, steps, "background");
|
|
66
|
+
// eslint-disable-next-line brace-style
|
|
67
|
+
}
|
|
68
|
+
// Normal Scenario
|
|
69
|
+
else if (!child.scenario.keyword.includes("Outline")) {
|
|
70
|
+
child.scenario.steps.forEach(step => {
|
|
71
|
+
stepJson = this.createStepJson(step, report, 0);
|
|
72
|
+
steps.push(stepJson);
|
|
73
|
+
});
|
|
74
|
+
const scenario = this.createScenarioJson(feature, child.scenario, steps, "scenario");
|
|
75
|
+
if (rule) {
|
|
76
|
+
scenario.id = `${feature.name};${rule.name};${scenario.name}`;
|
|
77
|
+
}
|
|
78
|
+
if (Object.keys(background).length !== 0 && background !== undefined) {
|
|
79
|
+
scenariosJson.push(background);
|
|
80
|
+
}
|
|
81
|
+
scenariosJson.push(scenario);
|
|
82
|
+
} /* Scenario Outline */
|
|
83
|
+
else if (child.scenario.examples[0].tableBody !== undefined) {
|
|
84
|
+
const numberOfExecutions = child.scenario.examples[0].tableBody.length;
|
|
85
|
+
const numberOfStepsEachExecution = child.scenario.steps.length;
|
|
86
|
+
let scenarioIndex = 0;
|
|
87
|
+
while (scenarioIndex < numberOfExecutions) {
|
|
88
|
+
let currentStep = 0;
|
|
89
|
+
steps = [];
|
|
90
|
+
while (currentStep < numberOfStepsEachExecution) {
|
|
91
|
+
stepJson = this.createStepJson(child.scenario.steps[currentStep], report, scenarioIndex);
|
|
92
|
+
currentStep++;
|
|
93
|
+
steps.push(stepJson);
|
|
94
|
+
}
|
|
95
|
+
const scenario = this.createScenarioJson(feature, child.scenario, steps, "scenario", scenarioIndex);
|
|
96
|
+
if (rule) {
|
|
97
|
+
scenario.id = `${feature.name};${rule.name};${scenario.name}`;
|
|
98
|
+
}
|
|
99
|
+
if (Object.keys(background).length !== 0 && background !== undefined) {
|
|
100
|
+
scenariosJson.push(background);
|
|
101
|
+
}
|
|
102
|
+
scenariosJson.push(scenario);
|
|
103
|
+
scenarioIndex++;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
exports.UuvCustomFormatter = UuvCustomFormatter;
|
package/dist/lib/uuv-cli.js
CHANGED
|
@@ -25,7 +25,7 @@ const figlet_1 = __importDefault(require("figlet"));
|
|
|
25
25
|
const minimist_1 = __importDefault(require("minimist"));
|
|
26
26
|
const fs_1 = __importDefault(require("fs"));
|
|
27
27
|
const cypress_1 = __importDefault(require("cypress"));
|
|
28
|
-
const
|
|
28
|
+
const uuv_custom_formatter_1 = require("../cucumber/uuv-custom-formatter");
|
|
29
29
|
async function main() {
|
|
30
30
|
const JSON_REPORT_DIR = "./uuv/reports/e2e/json";
|
|
31
31
|
const HTML_REPORT_DIR = "./uuv/reports/e2e/html";
|
|
@@ -94,12 +94,12 @@ async function main() {
|
|
|
94
94
|
if (!fs_1.default.existsSync(JSON_REPORT_DIR)) {
|
|
95
95
|
fs_1.default.mkdirSync(JSON_REPORT_DIR, { recursive: true });
|
|
96
96
|
}
|
|
97
|
-
const formatter = new
|
|
97
|
+
const formatter = new uuv_custom_formatter_1.UuvCustomFormatter();
|
|
98
98
|
const outputFile = `${JSON_REPORT_DIR}/cucumber-report.json`;
|
|
99
99
|
await formatter.parseCucumberJson(CUCUMBER_MESSAGES_FILE, outputFile);
|
|
100
100
|
}
|
|
101
101
|
function generateHtmlReportFromJson(browser, argv) {
|
|
102
|
-
const
|
|
102
|
+
const UNKNOWN_VALUE = "unknown";
|
|
103
103
|
multiple_cucumber_html_reporter_1.default.generate({
|
|
104
104
|
jsonDir: JSON_REPORT_DIR,
|
|
105
105
|
reportPath: HTML_REPORT_DIR,
|
|
@@ -108,9 +108,9 @@ async function main() {
|
|
|
108
108
|
name: browser,
|
|
109
109
|
version: argv.browserVersion ? argv.browserVersion : "",
|
|
110
110
|
},
|
|
111
|
-
device: argv.device ? argv.device :
|
|
111
|
+
device: argv.device ? argv.device : UNKNOWN_VALUE,
|
|
112
112
|
platform: {
|
|
113
|
-
name: argv.platformName ? argv.platformName :
|
|
113
|
+
name: argv.platformName ? argv.platformName : UNKNOWN_VALUE,
|
|
114
114
|
version: argv.platformVersion ? argv.platformVersion : "",
|
|
115
115
|
},
|
|
116
116
|
},
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uuv/cypress",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.2",
|
|
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.",
|
|
7
7
|
"license": "MIT",
|
|
8
|
-
"homepage": "https://
|
|
8
|
+
"homepage": "https://orange-opensource.github.io/uuv/",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "https://github.com/
|
|
11
|
+
"url": "https://github.com/Orange-OpenSource/uuv"
|
|
12
12
|
},
|
|
13
13
|
"bin": {
|
|
14
14
|
"uuv": "bin/uuv"
|
|
@@ -46,12 +46,13 @@
|
|
|
46
46
|
"@badeball/cypress-cucumber-preprocessor": "16.0.3",
|
|
47
47
|
"@cypress/webpack-preprocessor": "5.17.1",
|
|
48
48
|
"@testing-library/cypress": "9.0.0",
|
|
49
|
-
"@uuv/runner-commons": "1.6.
|
|
49
|
+
"@uuv/runner-commons": "1.6.2",
|
|
50
50
|
"axe-core": "4.7.2",
|
|
51
51
|
"chalk": "4.1.2",
|
|
52
52
|
"cucumber-json-report-formatter": "0.1.4",
|
|
53
|
-
"cypress": "12.17.
|
|
53
|
+
"cypress": "12.17.3",
|
|
54
54
|
"cypress-axe": "1.4.0",
|
|
55
|
+
"cypress-real-events": "^1.10.0",
|
|
55
56
|
"figlet": "1.6.0",
|
|
56
57
|
"is-admin": "2.1.1",
|
|
57
58
|
"minimist": "1.2.8",
|