@dev-blinq/cucumber_client 1.0.1234-dev → 1.0.1235-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.
@@ -189,3 +189,15 @@ async function verify_page_title(title){
189
189
  }
190
190
  Then("Verify the page title is {string}",verify_page_title)
191
191
 
192
+ /**
193
+ * Explicit wait/sleep function that pauses execution for a specified duration
194
+ * @param {duration} - Duration to sleep in milliseconds (default: 1000ms)
195
+ * @param {options} - Optional configuration object
196
+ * @param {world} - Optional world context
197
+ * @returns Promise that resolves after the specified duration
198
+ */
199
+ async function sleep(duration) {
200
+ await context.web.sleep(duration, {}, null);
201
+ }
202
+
203
+ Then("Sleep for {string} ms", {timeout: -1}, sleep);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-blinq/cucumber_client",
3
- "version": "1.0.1234-dev",
3
+ "version": "1.0.1235-dev",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",