Skip to content

Commit c381cfe

Browse files
DavertMikclaude
andcommitted
feat(actor): implement timeout(), retry() and stepConfig() chain
The previous commit only contains the test file rename. This one has the implementation: applyStepConfig shared with step.opts(), the recorder reading a step timeout when the task starts, per-step retry rule cleanup, typings and docs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 176e327 commit c381cfe

108 files changed

Lines changed: 577 additions & 428 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎docs/migration-4.md‎

Lines changed: 2 additions & 0 deletions

‎docs/retry.md‎

Lines changed: 1 addition & 1 deletion

‎docs/timeouts.md‎

Lines changed: 2 additions & 2 deletions

‎docs/webapi/amOnPage.mustache‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ I.amOnPage('/login'); // opens a login page
88
```
99

1010
@param {string} url url path or global url.
11-
@returns {void} automatically synchronized promise through #recorder
11+
@returns {CodeceptJS.StepPromise} automatically synchronized promise through #recorder

‎docs/webapi/appendField.mustache‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ I.appendField('name', 'John', '.form-container');
1313
@param {CodeceptJS.LocatorOrString} field located by label|name|CSS|XPath|strict locator
1414
@param {string} value text value to append.
1515
@param {?CodeceptJS.LocatorOrString} [context=null] (optional, `null` by default) element located by CSS | XPath | strict locator.
16-
@returns {CodeceptJS.StepPromise} automatically synchronized promise through #recorder
16+
@returns {CodeceptJS.ElementStepPromise} automatically synchronized promise through #recorder

‎docs/webapi/attachFile.mustache‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ I.attachFile('#dropzone', 'data/avatar.jpg');
2121
@param {CodeceptJS.LocatorOrString} locator field located by label|name|CSS|XPath|strict locator.
2222
@param {string} pathToFile local file path relative to codecept.conf.ts or codecept.conf.js config file.
2323
@param {?CodeceptJS.LocatorOrString} [context=null] (optional, `null` by default) element located by CSS | XPath | strict locator.
24-
@returns {CodeceptJS.StepPromise} automatically synchronized promise through #recorder
24+
@returns {CodeceptJS.ElementStepPromise} automatically synchronized promise through #recorder

‎docs/webapi/blur.mustache‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ I.dontSee('#add-to-cart-btn');
1515

1616
@param {CodeceptJS.LocatorOrString} locator field located by label|name|CSS|XPath|strict locator.
1717
@param {any} [options] Playwright only: [Additional options](https://playwright.dev/docs/api/class-locator#locator-blur) for available options object as 2nd argument.
18-
@returns {CodeceptJS.StepPromise} automatically synchronized promise through #recorder
18+
@returns {CodeceptJS.ElementStepPromise} automatically synchronized promise through #recorder

‎docs/webapi/checkOption.mustache‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ I.checkOption('agree', '//form');
1010
```
1111
@param {CodeceptJS.LocatorOrString} field checkbox located by label | name | CSS | XPath | strict locator.
1212
@param {?CodeceptJS.LocatorOrString} [context=null] (optional, `null` by default) element located by CSS | XPath | strict locator.
13-
@returns {CodeceptJS.StepPromise} automatically synchronized promise through #recorder
13+
@returns {CodeceptJS.ElementStepPromise} automatically synchronized promise through #recorder

‎docs/webapi/clearClipboard.mustache‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ I.clearClipboard();
55
I.seeClipboardEquals('');
66
```
77

8-
@returns {void} automatically synchronized promise through #recorder
8+
@returns {CodeceptJS.StepPromise} automatically synchronized promise through #recorder

‎docs/webapi/clearField.mustache‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ I.clearField('Email', '.form-container');
1111
```
1212
@param {LocatorOrString} editable field located by label|name|CSS|XPath|strict locator.
1313
@param {?CodeceptJS.LocatorOrString} [context=null] (optional, `null` by default) element located by CSS | XPath | strict locator.
14-
@returns {CodeceptJS.StepPromise} automatically synchronized promise through #recorder.
14+
@returns {CodeceptJS.ElementStepPromise} automatically synchronized promise through #recorder.

0 commit comments

Comments
 (0)