@uuv/cypress 1.6.1 → 1.7.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 +66 -44
- package/CONTRIBUTING.md +1 -1
- package/README.md +11 -11
- package/dist/cucumber/step_definitions/cypress/_.common.js +3 -4
- package/dist/cucumber/step_definitions/cypress/generated/_en-generated-cucumber-steps-definition.js +97 -19
- package/dist/cucumber/step_definitions/cypress/generated/_fr-generated-cucumber-steps-definition.js +97 -19
- package/dist/cypress/commands.d.ts +1 -0
- package/dist/cypress/commands.js +1 -0
- package/package.json +5 -5
- package/src/cucumber/step_definitions/cypress/generated/_en-generated-cucumber-steps-definition.ts +287 -192
- package/src/cucumber/step_definitions/cypress/generated/_fr-generated-cucumber-steps-definition.ts +287 -192
package/CHANGELOG.md
CHANGED
|
@@ -1,104 +1,126 @@
|
|
|
1
|
-
## [1.
|
|
1
|
+
## [1.7.1](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v1.7.0...runner-cypress-v1.7.1) (2023-08-09)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
* **deps:** update dependency
|
|
7
|
-
* **deps:** update dependency @cypress/webpack-preprocessor to v5.17.1 ([9570e56](https://github.com/e2e-test-quest/uuv/commit/9570e5689387a2c770994576d779a34ff242ca76))
|
|
8
|
-
* **deps:** update dependency antd to v5.7.3 ([452fc3c](https://github.com/e2e-test-quest/uuv/commit/452fc3c3861509e8aba46b3efa248f365bbfb747))
|
|
9
|
-
* **deps:** update dependency axe-core to v4.7.2 ([965b9dc](https://github.com/e2e-test-quest/uuv/commit/965b9dcb1445c369c770ed056ab990e3f966197b))
|
|
10
|
-
* **deps:** update dependency cypress to v12.17.2 ([49a3012](https://github.com/e2e-test-quest/uuv/commit/49a3012f7ebf0e6ecc879d21ff86147938967607))
|
|
11
|
-
* **deps:** update dependency nanoid to v3.3.6 ([82fa0c3](https://github.com/e2e-test-quest/uuv/commit/82fa0c31207a9004a8b365fe0e92fcaac38e1be3))
|
|
12
|
-
* **deps:** update docusaurus monorepo to v2.4.1 ([9c0f5fb](https://github.com/e2e-test-quest/uuv/commit/9c0f5fb6a641f54fc97d0940acfebdfb5106a790))
|
|
6
|
+
* **deps:** update dependency cypress to v12.17.3 ([35c812b](https://github.com/Orange-OpenSource/uuv/commit/35c812bdabd1a3a2d27e972d3bb5c9323497c449))
|
|
13
7
|
|
|
14
|
-
# [1.
|
|
8
|
+
# [1.7.0](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v1.6.1...runner-cypress-v1.7.0) (2023-07-31)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* correct link markdown not formated, [#164](https://github.com/Orange-OpenSource/uuv/issues/164) ([470e6b6](https://github.com/Orange-OpenSource/uuv/commit/470e6b6b07ef43261d14b0e8986cac304daf29d8))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* add accessibility sentences, [#164](https://github.com/Orange-OpenSource/uuv/issues/164) ([e55b2c6](https://github.com/Orange-OpenSource/uuv/commit/e55b2c647bec100294794fe34dabe582d2561643))
|
|
19
|
+
* add accessibility tab and arrows, [#166](https://github.com/Orange-OpenSource/uuv/issues/166) ([9b926cd](https://github.com/Orange-OpenSource/uuv/commit/9b926cd322049860a5f06810027dbeb7efe6d795))
|
|
20
|
+
* use accessibility sentences on cypress, [#164](https://github.com/Orange-OpenSource/uuv/issues/164) ([38fefc5](https://github.com/Orange-OpenSource/uuv/commit/38fefc5286cfd16c9693b8f6b0922679c1a9ca05))
|
|
21
|
+
* use accessibility sentences on playwright, [#164](https://github.com/Orange-OpenSource/uuv/issues/164) ([b273e84](https://github.com/Orange-OpenSource/uuv/commit/b273e842a1a6b82f1a9c707187aa3d176b7fcabc))
|
|
22
|
+
|
|
23
|
+
## [1.6.1](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v1.6.0...runner-cypress-v1.6.1) (2023-07-30)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Bug Fixes
|
|
27
|
+
|
|
28
|
+
* **deps:** update dependency @cucumber/cucumber to v9.3.0 ([212250b](https://github.com/Orange-OpenSource/uuv/commit/212250be47e040e34de18af33986a1f26f7b00a2))
|
|
29
|
+
* **deps:** update dependency @cypress/webpack-preprocessor to v5.17.1 ([9570e56](https://github.com/Orange-OpenSource/uuv/commit/9570e5689387a2c770994576d779a34ff242ca76))
|
|
30
|
+
* **deps:** update dependency antd to v5.7.3 ([452fc3c](https://github.com/Orange-OpenSource/uuv/commit/452fc3c3861509e8aba46b3efa248f365bbfb747))
|
|
31
|
+
* **deps:** update dependency axe-core to v4.7.2 ([965b9dc](https://github.com/Orange-OpenSource/uuv/commit/965b9dcb1445c369c770ed056ab990e3f966197b))
|
|
32
|
+
* **deps:** update dependency cypress to v12.17.2 ([49a3012](https://github.com/Orange-OpenSource/uuv/commit/49a3012f7ebf0e6ecc879d21ff86147938967607))
|
|
33
|
+
* **deps:** update dependency nanoid to v3.3.6 ([82fa0c3](https://github.com/Orange-OpenSource/uuv/commit/82fa0c31207a9004a8b365fe0e92fcaac38e1be3))
|
|
34
|
+
* **deps:** update docusaurus monorepo to v2.4.1 ([9c0f5fb](https://github.com/Orange-OpenSource/uuv/commit/9c0f5fb6a641f54fc97d0940acfebdfb5106a790))
|
|
35
|
+
|
|
36
|
+
# [1.6.0](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v1.5.0...runner-cypress-v1.6.0) (2023-07-18)
|
|
15
37
|
|
|
16
38
|
|
|
17
39
|
### Features
|
|
18
40
|
|
|
19
|
-
* add assistant-desktop to several docs, closes [#144](https://github.com/
|
|
41
|
+
* 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))
|
|
20
42
|
|
|
21
|
-
# [1.6.0](https://github.com/
|
|
43
|
+
# [1.6.0](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v1.5.0...runner-cypress-v1.6.0) (2023-07-17)
|
|
22
44
|
|
|
23
45
|
|
|
24
46
|
### Features
|
|
25
47
|
|
|
26
|
-
* add assistant-desktop to several docs, closes [#144](https://github.com/
|
|
48
|
+
* 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))
|
|
27
49
|
|
|
28
|
-
# [1.5.0](https://github.com/
|
|
50
|
+
# [1.5.0](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v1.4.3...runner-cypress-v1.5.0) (2023-07-02)
|
|
29
51
|
|
|
30
52
|
|
|
31
53
|
### Bug Fixes
|
|
32
54
|
|
|
33
|
-
* **assistant:** moving test app in component ([5bdc75b](https://github.com/
|
|
55
|
+
* **assistant:** moving test app in component ([5bdc75b](https://github.com/Orange-OpenSource/uuv/commit/5bdc75b9ae4aec75f7a944513af0d57a4107cefd))
|
|
34
56
|
|
|
35
57
|
|
|
36
58
|
### Features
|
|
37
59
|
|
|
38
|
-
* **assistant:** setting up electron, fixes [#132](https://github.com/
|
|
39
|
-
* setup assistant-electron package, [#132](https://github.com/
|
|
60
|
+
* **assistant:** setting up electron, fixes [#132](https://github.com/Orange-OpenSource/uuv/issues/132) ([6d6e99c](https://github.com/Orange-OpenSource/uuv/commit/6d6e99cbbdb498e1d5f24a0386e52ae38fa1b161))
|
|
61
|
+
* setup assistant-electron package, [#132](https://github.com/Orange-OpenSource/uuv/issues/132) ([76d69c2](https://github.com/Orange-OpenSource/uuv/commit/76d69c2b5d311b40cb42c9511d224d7911133e10))
|
|
40
62
|
|
|
41
|
-
## [1.4.3](https://github.com/
|
|
63
|
+
## [1.4.3](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v1.4.2...runner-cypress-v1.4.3) (2023-05-29)
|
|
42
64
|
|
|
43
65
|
|
|
44
66
|
### Bug Fixes
|
|
45
67
|
|
|
46
|
-
* **runner-playwright:** regenerate package-lock.json to fix lint, [#109](https://github.com/
|
|
68
|
+
* **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))
|
|
47
69
|
|
|
48
|
-
## [1.4.2](https://github.com/
|
|
70
|
+
## [1.4.2](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v1.4.1...runner-cypress-v1.4.2) (2023-05-19)
|
|
49
71
|
|
|
50
72
|
|
|
51
73
|
### Bug Fixes
|
|
52
74
|
|
|
53
|
-
* fix example url in readme, [#100](https://github.com/
|
|
75
|
+
* fix example url in readme, [#100](https://github.com/Orange-OpenSource/uuv/issues/100) ([c0609dc](https://github.com/Orange-OpenSource/uuv/commit/c0609dc6eee36e842e3dc74095a338d48b5248cc))
|
|
54
76
|
|
|
55
|
-
## [1.4.1](https://github.com/
|
|
77
|
+
## [1.4.1](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v1.4.0...runner-cypress-v1.4.1) (2023-05-19)
|
|
56
78
|
|
|
57
79
|
|
|
58
80
|
### Bug Fixes
|
|
59
81
|
|
|
60
|
-
* **assistant:** fix assistant css problem, [#120](https://github.com/
|
|
61
|
-
* release 1.4.0 package.json and rchangelog was not updated, [#117](https://github.com/
|
|
62
|
-
* remove explicit plugin @semantic-release/git and just set commit message, [#117](https://github.com/
|
|
82
|
+
* **assistant:** fix assistant css problem, [#120](https://github.com/Orange-OpenSource/uuv/issues/120) ([026d66a](https://github.com/Orange-OpenSource/uuv/commit/026d66ad6ad7e9090282f1734335c5a7b1e417c6))
|
|
83
|
+
* 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))
|
|
84
|
+
* 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))
|
|
63
85
|
|
|
64
|
-
# [1.4.0](https://github.com/
|
|
86
|
+
# [1.4.0](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v1.3.3...runner-cypress-v1.4.0) (2023-05-16)
|
|
65
87
|
|
|
66
88
|
### Bug Fixes
|
|
67
89
|
|
|
68
|
-
* **runner-commons:** restructure documentation, [#112](https://github.com/
|
|
69
|
-
* **runner-cypress:** add benefit block [#112](https://github.com/
|
|
70
|
-
* **runner-cypress:** restructure documentation, [#112](https://github.com/
|
|
90
|
+
* **runner-commons:** restructure documentation, [#112](https://github.com/Orange-OpenSource/uuv/issues/112) ([f5db612](https://github.com/Orange-OpenSource/uuv/commit/f5db612da3c31d2e6f4a3f647546167ebcbddaa5))
|
|
91
|
+
* **runner-cypress:** add benefit block [#112](https://github.com/Orange-OpenSource/uuv/issues/112) ([04cf36f](https://github.com/Orange-OpenSource/uuv/commit/04cf36fd0e43614ae801bb08bf514a4ba3cca975))
|
|
92
|
+
* **runner-cypress:** restructure documentation, [#112](https://github.com/Orange-OpenSource/uuv/issues/112) ([43353a8](https://github.com/Orange-OpenSource/uuv/commit/43353a88499e3270fa64c518b7332541e3a01652))
|
|
71
93
|
|
|
72
94
|
### Features
|
|
73
95
|
|
|
74
|
-
* **runner-playwright:** add error details and screenshot to report, fixes [#110](https://github.com/
|
|
96
|
+
* **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))
|
|
75
97
|
|
|
76
|
-
## [1.3.3](https://github.com/
|
|
98
|
+
## [1.3.3](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v1.3.2...runner-cypress-v1.3.3) (2023-05-15)
|
|
77
99
|
|
|
78
100
|
|
|
79
101
|
### Bug Fixes
|
|
80
102
|
|
|
81
|
-
* **runner-playwright:** fix workspace lint during ci, [#108](https://github.com/
|
|
103
|
+
* **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))
|
|
82
104
|
|
|
83
|
-
## [1.3.2](https://github.com/
|
|
105
|
+
## [1.3.2](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v1.3.1...runner-cypress-v1.3.2) (2023-05-11)
|
|
84
106
|
|
|
85
107
|
|
|
86
108
|
### Bug Fixes
|
|
87
109
|
|
|
88
|
-
* **runner-cypress:** add lint script [#8](https://github.com/
|
|
89
|
-
* **runner-cypress:** modify doc for npmjs [#94](https://github.com/
|
|
90
|
-
* **runner-playwright:** update @cucumber/cucumber dep version, [#93](https://github.com/
|
|
110
|
+
* **runner-cypress:** add lint script [#8](https://github.com/Orange-OpenSource/uuv/issues/8) ([78c43d1](https://github.com/Orange-OpenSource/uuv/commit/78c43d1406709953086793298132f8fb85e68ba8))
|
|
111
|
+
* **runner-cypress:** modify doc for npmjs [#94](https://github.com/Orange-OpenSource/uuv/issues/94) ([b7ba332](https://github.com/Orange-OpenSource/uuv/commit/b7ba332900081318984e495d563c1477ffacd801))
|
|
112
|
+
* **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))
|
|
91
113
|
|
|
92
|
-
## [1.3.1](https://github.com/
|
|
114
|
+
## [1.3.1](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v1.3.0...runner-cypress-v1.3.1) (2023-05-09)
|
|
93
115
|
|
|
94
116
|
|
|
95
117
|
### Bug Fixes
|
|
96
118
|
|
|
97
|
-
* **runner-commons:** fix npm documentation, [#87](https://github.com/
|
|
98
|
-
* **runner-commons:** modify keyword for npmjs, [#87](https://github.com/
|
|
99
|
-
* **runner-cypress:** fix npm documentation, [#87](https://github.com/
|
|
100
|
-
* **runner-cypress:** modify keyword for npmjs, [#87](https://github.com/
|
|
101
|
-
* **runner-cypress:** move webpack dep from devDeps to deps ([2e96fa7](https://github.com/
|
|
119
|
+
* **runner-commons:** fix npm documentation, [#87](https://github.com/Orange-OpenSource/uuv/issues/87) ([ba7394c](https://github.com/Orange-OpenSource/uuv/commit/ba7394cd755e350fd5a5964aed26435e5979e77d))
|
|
120
|
+
* **runner-commons:** modify keyword for npmjs, [#87](https://github.com/Orange-OpenSource/uuv/issues/87) ([392c4d0](https://github.com/Orange-OpenSource/uuv/commit/392c4d0337179dae2c2a96c26dc2cc32e0ad87b3))
|
|
121
|
+
* **runner-cypress:** fix npm documentation, [#87](https://github.com/Orange-OpenSource/uuv/issues/87) ([1ccef97](https://github.com/Orange-OpenSource/uuv/commit/1ccef97182614635050defdccbe8838df2603247))
|
|
122
|
+
* **runner-cypress:** modify keyword for npmjs, [#87](https://github.com/Orange-OpenSource/uuv/issues/87) ([080f82d](https://github.com/Orange-OpenSource/uuv/commit/080f82d92c376b0d30ee2fb3473a07d5fc1f0d73))
|
|
123
|
+
* **runner-cypress:** move webpack dep from devDeps to deps ([2e96fa7](https://github.com/Orange-OpenSource/uuv/commit/2e96fa77d8b9845d6df899603dee087aad13e8ef))
|
|
102
124
|
|
|
103
125
|
# Change Log
|
|
104
126
|
All notable changes to this project will be documented in this file.
|
|
@@ -109,9 +131,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
109
131
|
## [1.2.0-beta-20230424] - 2023-04-24
|
|
110
132
|
|
|
111
133
|
### Added
|
|
112
|
-
- [#4](https://github.com/
|
|
134
|
+
- [#4](https://github.com/Orange-OpenSource/uuv/issues/4)
|
|
113
135
|
MINOR Amélioration du scoring npm
|
|
114
|
-
- [#3](https://github.com/
|
|
136
|
+
- [#3](https://github.com/Orange-OpenSource/uuv/issues/3)
|
|
115
137
|
MAJOR Initialisation du pipeline
|
|
116
|
-
- [#1](https://github.com/
|
|
138
|
+
- [#1](https://github.com/Orange-OpenSource/uuv/issues/1)
|
|
117
139
|
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
|
|
|
@@ -22,7 +22,7 @@ exports.uuvGetContext = uuvGetContext;
|
|
|
22
22
|
function uuvCheckContextFocusedElement() {
|
|
23
23
|
return cy.get("@context")
|
|
24
24
|
.then(context => {
|
|
25
|
-
console.log("focusedElement: ", context);
|
|
25
|
+
// console.log("focusedElement: ", context);
|
|
26
26
|
if (!context.focusedElement) {
|
|
27
27
|
throw new Error("No element currently selected");
|
|
28
28
|
}
|
|
@@ -50,12 +50,11 @@ function addContextOptions(context, roleOptions) {
|
|
|
50
50
|
/* eslint-disable @typescript-eslint/ban-types */
|
|
51
51
|
function abstractFindBy(callBackFunction, inputToSearch, inputOptions) {
|
|
52
52
|
return cy.uuvGetContext().then(context => {
|
|
53
|
-
console.log("context");
|
|
54
|
-
console.log(context);
|
|
53
|
+
// console.log("context", context);
|
|
55
54
|
const parentElement = context.focusedElement;
|
|
56
55
|
const options = addContextOptions(context, inputOptions);
|
|
57
56
|
if (parentElement) {
|
|
58
|
-
console.log("parentElement: ", parentElement);
|
|
57
|
+
// console.log("parentElement: ", parentElement);
|
|
59
58
|
return parentElement.should("exist").within(() => {
|
|
60
59
|
callBackFunction(inputToSearch, options).as("foundedChildElement");
|
|
61
60
|
});
|
package/dist/cucumber/step_definitions/cypress/generated/_en-generated-cucumber-steps-definition.js
CHANGED
|
@@ -4,22 +4,23 @@ NE PAS MODIFIER, FICHIER GENERE
|
|
|
4
4
|
*******************************/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
/**
|
|
7
|
-
* Software Name : UUV
|
|
8
|
-
*
|
|
9
|
-
* SPDX-FileCopyrightText: Copyright (c) 2022-2023 Orange
|
|
10
|
-
* SPDX-License-Identifier: MIT
|
|
11
|
-
*
|
|
12
|
-
* This software is distributed under the MIT License,
|
|
13
|
-
* the text of which is available at https://spdx.org/licenses/MIT.html
|
|
14
|
-
* or see the "LICENSE" file for more details.
|
|
15
|
-
*
|
|
16
|
-
* Authors: NJAKO MOLOM Louis Fredice & SERVICAL Stanley
|
|
17
|
-
* Software description: Make test writing fast, understandable by any human
|
|
18
|
-
* understanding English or French.
|
|
19
|
-
*/
|
|
7
|
+
* Software Name : UUV
|
|
8
|
+
*
|
|
9
|
+
* SPDX-FileCopyrightText: Copyright (c) 2022-2023 Orange
|
|
10
|
+
* SPDX-License-Identifier: MIT
|
|
11
|
+
*
|
|
12
|
+
* This software is distributed under the MIT License,
|
|
13
|
+
* the text of which is available at https://spdx.org/licenses/MIT.html
|
|
14
|
+
* or see the "LICENSE" file for more details.
|
|
15
|
+
*
|
|
16
|
+
* Authors: NJAKO MOLOM Louis Fredice & SERVICAL Stanley
|
|
17
|
+
* Software description: Make test writing fast, understandable by any human
|
|
18
|
+
* understanding English or French.
|
|
19
|
+
*/
|
|
20
20
|
const cypress_cucumber_preprocessor_1 = require("@badeball/cypress-cucumber-preprocessor");
|
|
21
21
|
const _context_1 = require("../_context");
|
|
22
22
|
require("../../../../cypress/commands");
|
|
23
|
+
const runner_commons_1 = require("@uuv/runner-commons");
|
|
23
24
|
const core_engine_1 = require("../core-engine");
|
|
24
25
|
(0, cypress_cucumber_preprocessor_1.When)(`I visit path {string}`, function (siteUrl) {
|
|
25
26
|
if (siteUrl.match("^http:\\/\\/|https:\\/\\/")) {
|
|
@@ -38,6 +39,20 @@ const core_engine_1 = require("../core-engine");
|
|
|
38
39
|
context.focusedElement.type(textToType);
|
|
39
40
|
});
|
|
40
41
|
});
|
|
42
|
+
(0, cypress_cucumber_preprocessor_1.When)(`I press {int} times on {string}`, function (nbTimes, key) {
|
|
43
|
+
for (let i = 1; i <= nbTimes; i++) {
|
|
44
|
+
cy.uuvCheckContextFocusedElement().then((context) => {
|
|
45
|
+
context.focusedElement.focus();
|
|
46
|
+
pressKey(context.focusedElement, key);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
(0, cypress_cucumber_preprocessor_1.When)(`I press {string}`, function (key) {
|
|
51
|
+
cy.uuvCheckContextFocusedElement().then((context) => {
|
|
52
|
+
context.focusedElement.focus();
|
|
53
|
+
pressKey(context.focusedElement, key);
|
|
54
|
+
});
|
|
55
|
+
});
|
|
41
56
|
////////////////////////////////////////////
|
|
42
57
|
// Context ACTIONS
|
|
43
58
|
////////////////////////////////////////////
|
|
@@ -49,7 +64,7 @@ const core_engine_1 = require("../core-engine");
|
|
|
49
64
|
});
|
|
50
65
|
(0, cypress_cucumber_preprocessor_1.When)(`I set timeout with value {int}`, function (newTimeout) {
|
|
51
66
|
return cy.uuvPatchContext({
|
|
52
|
-
timeout: newTimeout
|
|
67
|
+
timeout: newTimeout
|
|
53
68
|
});
|
|
54
69
|
});
|
|
55
70
|
(0, cypress_cucumber_preprocessor_1.When)(`Within the element with role {string} and name {string}`, function (role, name) {
|
|
@@ -94,21 +109,21 @@ const core_engine_1 = require("../core-engine");
|
|
|
94
109
|
(0, cypress_cucumber_preprocessor_1.When)(`I mock a request {} on url {string} named {string} with content {}`, function (verb, uri, name, body) {
|
|
95
110
|
return cy
|
|
96
111
|
.intercept(verb, uri, {
|
|
97
|
-
body: body
|
|
112
|
+
body: body
|
|
98
113
|
})
|
|
99
114
|
.as(name);
|
|
100
115
|
});
|
|
101
116
|
(0, cypress_cucumber_preprocessor_1.When)(`I mock a request {} on url {string} named {string} with status code {int}`, function (verb, uri, name, statusCode) {
|
|
102
117
|
return cy
|
|
103
118
|
.intercept(verb, uri, {
|
|
104
|
-
statusCode: statusCode
|
|
119
|
+
statusCode: statusCode
|
|
105
120
|
})
|
|
106
121
|
.as(name);
|
|
107
122
|
});
|
|
108
123
|
(0, cypress_cucumber_preprocessor_1.When)(`I mock a request {} on url {string} named {string} with fixture {}`, function (verb, uri, name, fixture) {
|
|
109
124
|
return cy
|
|
110
125
|
.intercept(verb, uri, {
|
|
111
|
-
fixture: fixture
|
|
126
|
+
fixture: fixture
|
|
112
127
|
})
|
|
113
128
|
.as(name);
|
|
114
129
|
});
|
|
@@ -119,7 +134,7 @@ const core_engine_1 = require("../core-engine");
|
|
|
119
134
|
cy.intercept(method, url, (req) => {
|
|
120
135
|
req.headers = {
|
|
121
136
|
...req.headers,
|
|
122
|
-
...headersToSet.rowsHash()
|
|
137
|
+
...headersToSet.rowsHash()
|
|
123
138
|
};
|
|
124
139
|
req.continue();
|
|
125
140
|
});
|
|
@@ -128,7 +143,7 @@ const core_engine_1 = require("../core-engine");
|
|
|
128
143
|
cy.intercept(url, (req) => {
|
|
129
144
|
req.headers = {
|
|
130
145
|
...req.headers,
|
|
131
|
-
...headersToSet.rowsHash()
|
|
146
|
+
...headersToSet.rowsHash()
|
|
132
147
|
};
|
|
133
148
|
req.continue();
|
|
134
149
|
});
|
|
@@ -230,3 +245,66 @@ const core_engine_1 = require("../core-engine");
|
|
|
230
245
|
cy.injectAxe();
|
|
231
246
|
cy.checkA11y();
|
|
232
247
|
});
|
|
248
|
+
(0, cypress_cucumber_preprocessor_1.Then)(`I should not have any critical accessibility issue`, async function () {
|
|
249
|
+
cy.injectAxe();
|
|
250
|
+
cy.checkA11y(undefined, {
|
|
251
|
+
includedImpacts: ["critical"]
|
|
252
|
+
});
|
|
253
|
+
});
|
|
254
|
+
(0, cypress_cucumber_preprocessor_1.Then)(`I should not have any accessibility issue with {} impact(s)`, async function (impacts) {
|
|
255
|
+
cy.injectAxe();
|
|
256
|
+
cy.checkA11y(undefined, {
|
|
257
|
+
includedImpacts: [impacts]
|
|
258
|
+
});
|
|
259
|
+
});
|
|
260
|
+
(0, cypress_cucumber_preprocessor_1.Then)(`I should not have any accessibility issue with accessibility standard(s) {}`, async function (tags) {
|
|
261
|
+
cy.injectAxe();
|
|
262
|
+
cy.checkA11y(undefined, {
|
|
263
|
+
runOnly: {
|
|
264
|
+
type: "tag",
|
|
265
|
+
values: [tags]
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
});
|
|
269
|
+
(0, cypress_cucumber_preprocessor_1.Then)(`I should not have any accessibility issue with context json fixture {} and option json fixture {}`, async function (context, option) {
|
|
270
|
+
cy.injectAxe();
|
|
271
|
+
cy.fixture(context).then(context => {
|
|
272
|
+
cy.fixture(option).then(option => {
|
|
273
|
+
cy.checkA11y(context, option);
|
|
274
|
+
});
|
|
275
|
+
});
|
|
276
|
+
});
|
|
277
|
+
(0, cypress_cucumber_preprocessor_1.Then)(`I should not have any accessibility issue with option json fixture {}`, async function (option) {
|
|
278
|
+
cy.injectAxe();
|
|
279
|
+
cy.fixture(option).then(data => {
|
|
280
|
+
cy.checkA11y(undefined, data);
|
|
281
|
+
});
|
|
282
|
+
});
|
|
283
|
+
function pressKey(context, key) {
|
|
284
|
+
switch (key) {
|
|
285
|
+
case runner_commons_1.KEY_PRESS.TAB:
|
|
286
|
+
context.realPress("Tab");
|
|
287
|
+
break;
|
|
288
|
+
case runner_commons_1.KEY_PRESS.REVERSE_TAB:
|
|
289
|
+
context.realPress(["ShiftLeft", "Tab"]);
|
|
290
|
+
break;
|
|
291
|
+
case runner_commons_1.KEY_PRESS.UP:
|
|
292
|
+
context.realPress("ArrowUp");
|
|
293
|
+
break;
|
|
294
|
+
case runner_commons_1.KEY_PRESS.DOWN:
|
|
295
|
+
context.realPress("ArrowDown");
|
|
296
|
+
break;
|
|
297
|
+
case runner_commons_1.KEY_PRESS.LEFT:
|
|
298
|
+
context.realPress("ArrowLeft");
|
|
299
|
+
break;
|
|
300
|
+
case runner_commons_1.KEY_PRESS.RIGHT:
|
|
301
|
+
context.realPress("ArrowRight");
|
|
302
|
+
break;
|
|
303
|
+
default:
|
|
304
|
+
console.error("the command" + key + " is unrecognized.");
|
|
305
|
+
break;
|
|
306
|
+
}
|
|
307
|
+
cy.uuvPatchContext({
|
|
308
|
+
focusedElement: cy.focused()
|
|
309
|
+
});
|
|
310
|
+
}
|