@dev-blinq/cucumber_client 1.0.1485-dev → 1.0.1487-dev
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.
|
@@ -81,15 +81,24 @@ async function browserNavigateForward() {
|
|
|
81
81
|
Then("Browser navigate forward", browserNavigateForward);
|
|
82
82
|
|
|
83
83
|
/**
|
|
84
|
-
*
|
|
85
|
-
* @param {string} filePath the file path to
|
|
84
|
+
* Store browser session "<path>"
|
|
85
|
+
* @param {string} filePath the file path or empty to store in the test data file
|
|
86
86
|
* @protect
|
|
87
87
|
*/
|
|
88
|
-
async function
|
|
89
|
-
await context.web.
|
|
88
|
+
async function storeBrowserSession(filePath) {
|
|
89
|
+
await context.web.saveStoreState(filePath, this);
|
|
90
90
|
}
|
|
91
|
-
When("
|
|
91
|
+
When("Store browser session {string}", storeBrowserSession);
|
|
92
92
|
|
|
93
|
+
/**
|
|
94
|
+
* Reset browser session with session file "<path>"
|
|
95
|
+
* @param {string} filePath the file path or empty
|
|
96
|
+
* @protect
|
|
97
|
+
*/
|
|
98
|
+
async function resetBrowserSession(filePath) {
|
|
99
|
+
await context.web.restoreSaveState(filePath, this);
|
|
100
|
+
}
|
|
101
|
+
When("Reset browser session {string}", resetBrowserSession);
|
|
93
102
|
|
|
94
103
|
/**
|
|
95
104
|
* Identify the text "<textAnchor>", climb "<climb>" levels in the page, validate text "<textToVerify>" can be found in the context
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dev-blinq/cucumber_client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1487-dev",
|
|
4
4
|
"description": " ",
|
|
5
5
|
"main": "bin/index.js",
|
|
6
6
|
"types": "bin/index.d.ts",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@cucumber/tag-expressions": "^6.1.1",
|
|
40
40
|
"@dev-blinq/cucumber-js": "1.0.188-dev",
|
|
41
41
|
"@faker-js/faker": "^8.1.0",
|
|
42
|
-
"automation_model": "1.0.
|
|
42
|
+
"automation_model": "1.0.857-dev",
|
|
43
43
|
"axios": "^1.7.4",
|
|
44
44
|
"chokidar": "^3.6.0",
|
|
45
45
|
"create-require": "^1.1.1",
|