@uuv/cypress 2.29.1 → 2.29.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 +8 -0
- package/dist/cucumber/step_definitions/cypress/generated/_en-generated-cucumber-steps-definition.js +7 -1
- package/dist/cucumber/step_definitions/cypress/generated/_fr-generated-cucumber-steps-definition.js +7 -1
- package/package.json +1 -1
- package/src/cucumber/step_definitions/cypress/generated/_en-generated-cucumber-steps-definition.ts +6 -1
- package/src/cucumber/step_definitions/cypress/generated/_fr-generated-cucumber-steps-definition.ts +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [2.29.2](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v2.29.1...runner-cypress-v2.29.2) (2024-08-30)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* clear keyboard focus in reset sentence, [#762](https://github.com/Orange-OpenSource/uuv/issues/762) ([946c5aa](https://github.com/Orange-OpenSource/uuv/commit/946c5aa667a0007b296151351dd450412cd784b3))
|
|
7
|
+
* consider timeout for type and click sentence, [#761](https://github.com/Orange-OpenSource/uuv/issues/761) ([1120a53](https://github.com/Orange-OpenSource/uuv/commit/1120a53fd80c0958a7a6c7b71d802a8c5dbb7e25))
|
|
8
|
+
|
|
1
9
|
## [2.29.1](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v2.29.0...runner-cypress-v2.29.1) (2024-08-25)
|
|
2
10
|
|
|
3
11
|
|
package/dist/cucumber/step_definitions/cypress/generated/_en-generated-cucumber-steps-definition.js
CHANGED
|
@@ -180,6 +180,12 @@ const __common_1 = require("./../_.common");
|
|
|
180
180
|
* */
|
|
181
181
|
(0, cypress_cucumber_preprocessor_1.When)(`I reset context`, function () {
|
|
182
182
|
cy.wrap(new _context_1.Context()).as("context");
|
|
183
|
+
if (haveKeyBoardFocused()) {
|
|
184
|
+
cy.focused().blur();
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
cy.window().trigger("blur");
|
|
188
|
+
}
|
|
183
189
|
});
|
|
184
190
|
/**
|
|
185
191
|
* Mock a named API response with body. <i>If you use Playwright as runtime engine, <b>request</b> and <b>named</b> are unused.</i>
|
|
@@ -489,7 +495,7 @@ function click(role, name) {
|
|
|
489
495
|
cy.wrap(new _context_1.Context()).as("context");
|
|
490
496
|
}
|
|
491
497
|
else {
|
|
492
|
-
cy.findByRole(role, { name: name }).click();
|
|
498
|
+
cy.findByRole(role, { name: name, ...context }).click();
|
|
493
499
|
}
|
|
494
500
|
});
|
|
495
501
|
}
|
package/dist/cucumber/step_definitions/cypress/generated/_fr-generated-cucumber-steps-definition.js
CHANGED
|
@@ -180,6 +180,12 @@ const __common_1 = require("./../_.common");
|
|
|
180
180
|
* */
|
|
181
181
|
(0, cypress_cucumber_preprocessor_1.When)(`je reinitialise le contexte`, function () {
|
|
182
182
|
cy.wrap(new _context_1.Context()).as("context");
|
|
183
|
+
if (haveKeyBoardFocused()) {
|
|
184
|
+
cy.focused().blur();
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
cy.window().trigger("blur");
|
|
188
|
+
}
|
|
183
189
|
});
|
|
184
190
|
/**
|
|
185
191
|
* Simule une réponse d'API avec un contenu spécifique. <i>Si vous utilisez Playwright comme moteur d'exécution, les attributs <b>méthode de requête</b> et <b>nom</b> ne sont pas utilisés.</i>
|
|
@@ -489,7 +495,7 @@ function click(role, name) {
|
|
|
489
495
|
cy.wrap(new _context_1.Context()).as("context");
|
|
490
496
|
}
|
|
491
497
|
else {
|
|
492
|
-
cy.findByRole(role, { name: name }).click();
|
|
498
|
+
cy.findByRole(role, { name: name, ...context }).click();
|
|
493
499
|
}
|
|
494
500
|
});
|
|
495
501
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uuv/cypress",
|
|
3
|
-
"version": "2.29.
|
|
3
|
+
"version": "2.29.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 facilitate the writing and execution of E2E tests understandable by any human being using cucumber(BDD) and cypress",
|
package/src/cucumber/step_definitions/cypress/generated/_en-generated-cucumber-steps-definition.ts
CHANGED
|
@@ -216,6 +216,11 @@ When(`within the element with selector {string}`, function(selector: string) {
|
|
|
216
216
|
* */
|
|
217
217
|
When(`I reset context`, function() {
|
|
218
218
|
cy.wrap(new Context()).as("context");
|
|
219
|
+
if (haveKeyBoardFocused()) {
|
|
220
|
+
cy.focused().blur();
|
|
221
|
+
} else {
|
|
222
|
+
cy.window().trigger("blur");
|
|
223
|
+
}
|
|
219
224
|
});
|
|
220
225
|
|
|
221
226
|
/**
|
|
@@ -623,7 +628,7 @@ function click(role: string, name: string) {
|
|
|
623
628
|
cy.uuvFindByRole(role, { name: name }).uuvFoundedElement().click();
|
|
624
629
|
cy.wrap(new Context()).as("context");
|
|
625
630
|
} else {
|
|
626
|
-
cy.findByRole(role, { name: name }).click();
|
|
631
|
+
cy.findByRole(role, { name: name, ...context }).click();
|
|
627
632
|
}
|
|
628
633
|
});
|
|
629
634
|
}
|
package/src/cucumber/step_definitions/cypress/generated/_fr-generated-cucumber-steps-definition.ts
CHANGED
|
@@ -216,6 +216,11 @@ When(`je vais à l'intérieur de l'élément ayant pour sélecteur {string}`, fu
|
|
|
216
216
|
* */
|
|
217
217
|
When(`je reinitialise le contexte`, function() {
|
|
218
218
|
cy.wrap(new Context()).as("context");
|
|
219
|
+
if (haveKeyBoardFocused()) {
|
|
220
|
+
cy.focused().blur();
|
|
221
|
+
} else {
|
|
222
|
+
cy.window().trigger("blur");
|
|
223
|
+
}
|
|
219
224
|
});
|
|
220
225
|
|
|
221
226
|
/**
|
|
@@ -623,7 +628,7 @@ function click(role: string, name: string) {
|
|
|
623
628
|
cy.uuvFindByRole(role, { name: name }).uuvFoundedElement().click();
|
|
624
629
|
cy.wrap(new Context()).as("context");
|
|
625
630
|
} else {
|
|
626
|
-
cy.findByRole(role, { name: name }).click();
|
|
631
|
+
cy.findByRole(role, { name: name, ...context }).click();
|
|
627
632
|
}
|
|
628
633
|
});
|
|
629
634
|
}
|