Skip to content

Commit 8b721ca

Browse files
authored
fix: ensure mustache docs include @returns Promise<void> where appropriate (#3954)
1 parent f598059 commit 8b721ca

File tree

92 files changed

+371
-373
lines changed

Some content is hidden

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

92 files changed

+371
-373
lines changed

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-
@return {void} automatically synchronized promise with recorder #!
11+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/appendField.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ I.appendField('password', secret('123456'));
88
```
99
@param {CodeceptJS.LocatorOrString} field located by label|name|CSS|XPath|strict locator
1010
@param {string} value text value to append.
11-
⚠️ returns a _promise_ which is synchronized internally by recorder
11+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/attachFile.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ I.attachFile('form input[name=avatar]', 'data/avatar.jpg');
99

1010
@param {CodeceptJS.LocatorOrString} locator field located by label|name|CSS|XPath|strict locator.
1111
@param {string} pathToFile local file path relative to codecept.conf.ts or codecept.conf.js config file.
12-
⚠️ returns a _promise_ which is synchronized internally by recorder
12+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/blur.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +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 {Promise<void>} 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 a _promise_ which is synchronized internally by recorder
13+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/clearCookie.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ I.clearCookie('test');
77
```
88

99
@param {?string} [cookie=null] (optional, `null` by default) cookie name
10-
⚠️ returns a _promise_ which is synchronized internally by recorder
10+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/clearField.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ I.clearField('user[email]');
66
I.clearField('#email');
77
```
88
@param {LocatorOrString} editable field located by label|name|CSS|XPath|strict locator.
9-
⚠️ returns a _promise_ which is synchronized internally by recorder.
9+
@returns {Promise<void>} automatically synchronized promise through #recorder.

docs/webapi/click.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ I.click({css: 'nav a.login'});
2222

2323
@param {CodeceptJS.LocatorOrString} locator clickable link or button located by text, or any element located by CSS|XPath|strict locator.
2424
@param {?CodeceptJS.LocatorOrString | null} [context=null] (optional, `null` by default) element to search in CSS|XPath|Strict locator.
25-
⚠️ returns a _promise_ which is synchronized internally by recorder
25+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/clickLink.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ I.clickLink('Logout', '#nav');
55
```
66
@param {CodeceptJS.LocatorOrString} locator clickable link or button located by text, or any element located by CSS|XPath|strict locator
77
@param {?CodeceptJS.LocatorOrString} [context=null] (optional, `null` by default) element to search in CSS|XPath|Strict locator
8-
⚠️ returns a _promise_ which is synchronized internally by recorder
8+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/closeCurrentTab.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ Close current tab.
44
I.closeCurrentTab();
55
```
66

7-
⚠️ returns a _promise_ which is synchronized internally by recorder
7+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/closeOtherTabs.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ Close all tabs except for the current one.
55
I.closeOtherTabs();
66
```
77

8-
⚠️ returns a _promise_ which is synchronized internally by recorder
8+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/dontSee.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ I.dontSee('Login', '.nav'); // no login inside .nav element
88

99
@param {string} text which is not present.
1010
@param {CodeceptJS.LocatorOrString} [context] (optional) element located by CSS|XPath|strict locator in which to perfrom search.
11-
⚠️ returns a _promise_ which is synchronized internally by recorder
11+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/dontSeeCheckboxIsChecked.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ I.dontSeeCheckboxIsChecked('agree'); // located by name
77
```
88

99
@param {CodeceptJS.LocatorOrString} field located by label|name|CSS|XPath|strict locator.
10-
⚠️ returns a _promise_ which is synchronized internally by recorder
10+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/dontSeeCookie.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ I.dontSeeCookie('auth'); // no auth cookie
55
```
66

77
@param {string} name cookie name.
8-
⚠️ returns a _promise_ which is synchronized internally by recorder
8+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/dontSeeCurrentUrlEquals.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ I.dontSeeCurrentUrlEquals('http://mysite.com/login'); // absolute urls are also
77
```
88

99
@param {string} url value to check.
10-
⚠️ returns a _promise_ which is synchronized internally by recorder
10+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/dontSeeElement.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ I.dontSeeElement('.modal'); // modal is not shown
55
```
66

77
@param {CodeceptJS.LocatorOrString} locator located by CSS|XPath|Strict locator.
8-
⚠️ returns a _promise_ which is synchronized internally by recorder
8+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/dontSeeElementInDOM.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ I.dontSeeElementInDOM('.nav'); // checks that element is not on page visible or
55
```
66

77
@param {CodeceptJS.LocatorOrString} locator located by CSS|XPath|Strict locator.
8-
⚠️ returns a _promise_ which is synchronized internally by recorder
8+
@returns {Promise<void>} automatically synchronized promise through #recorder
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Checks that current url does not contain a provided fragment.
22

33
@param {string} url value to check.
4-
⚠️ returns a _promise_ which is synchronized internally by recorder
4+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/dontSeeInField.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ I.dontSeeInField({ css: 'form input.email' }, '[email protected]'); // field by CSS
88

99
@param {CodeceptJS.LocatorOrString} field located by label|name|CSS|XPath|strict locator.
1010
@param {CodeceptJS.StringOrSecret} value value to check.
11-
⚠️ returns a _promise_ which is synchronized internally by recorder
11+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/dontSeeInSource.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ I.dontSeeInSource('<!--'); // no comments in source
55
```
66
77
@param {string} value to check.
8-
⚠️ returns a _promise_ which is synchronized internally by recorder
8+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/dontSeeInTitle.mustache

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

77
@param {string} text value to check.
8-
⚠️ returns a _promise_ which is synchronized internally by recorder
8+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/doubleClick.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ I.doubleClick('.btn.edit');
1010

1111
@param {CodeceptJS.LocatorOrString} locator clickable link or button located by text, or any element located by CSS|XPath|strict locator.
1212
@param {?CodeceptJS.LocatorOrString} [context=null] (optional, `null` by default) element to search in CSS|XPath|Strict locator.
13-
⚠️ returns a _promise_ which is synchronized internally by recorder
13+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/downloadFile.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ I.downloadFile('td[class="text-right file-link"] a', 'thisIsCustomName');
99

1010
@param {CodeceptJS.LocatorOrString} locator clickable link or button located by CSS|XPath locator.
1111
@param {string} file custom file name.
12-
⚠️ returns a _promise_ which is synchronized internally by recorder
12+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/dragAndDrop.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ I.dragAndDrop('#dragHandle', '#container');
66

77
@param {LocatorOrString} srcElement located by CSS|XPath|strict locator.
88
@param {LocatorOrString} destElement located by CSS|XPath|strict locator.
9-
⚠️ returns a _promise_ which is synchronized internally by recorder
9+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/dragSlider.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ I.dragSlider('#slider', -70);
88

99
@param {CodeceptJS.LocatorOrString} locator located by label|name|CSS|XPath|strict locator.
1010
@param {number} offsetX position to drag.
11-
⚠️ returns a _promise_ which is synchronized internally by recorder
11+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/executeAsyncScript.mustache

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,3 @@ let val = await I.executeAsyncScript(function(url, done) {
2222
@param {string|function} fn function to be executed in browser context.
2323
@param {...any} args to be passed to function.
2424
@returns {Promise<any>} script return value
25-
26-
⚠️ returns a _promise_ which is synchronized internally by recorder

docs/webapi/executeScript.mustache

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,3 @@ let date = await I.executeScript(function(el) {
2424
@param {string|function} fn function to be executed in browser context.
2525
@param {...any} args to be passed to function.
2626
@returns {Promise<any>} script return value
27-
28-
⚠️ returns a _promise_ which is synchronized internally by recorder

docs/webapi/fillField.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ I.fillField({css: 'form#login input[name=username]'}, 'John');
1313
```
1414
@param {CodeceptJS.LocatorOrString} field located by label|name|CSS|XPath|strict locator.
1515
@param {CodeceptJS.StringOrSecret} value text value to fill.
16-
⚠️ returns a _promise_ which is synchronized internally by recorder
16+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/focus.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ I.see('#add-to-cart-bnt');
1010

1111
@param {CodeceptJS.LocatorOrString} locator field located by label|name|CSS|XPath|strict locator.
1212
@param {any} [options] Playwright only: [Additional options](https://playwright.dev/docs/api/class-locator#locator-focus) for available options object as 2nd argument.
13+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/forceClick.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ I.forceClick({css: 'nav a.login'});
2525

2626
@param {CodeceptJS.LocatorOrString} locator clickable link or button located by text, or any element located by CSS|XPath|strict locator.
2727
@param {?CodeceptJS.LocatorOrString} [context=null] (optional, `null` by default) element to search in CSS|XPath|Strict locator.
28-
⚠️ returns a _promise_ which is synchronized internally by recorder
28+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/forceRightClick.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ I.forceRightClick('Menu');
1515

1616
@param {CodeceptJS.LocatorOrString} locator clickable link or button located by text, or any element located by CSS|XPath|strict locator.
1717
@param {?CodeceptJS.LocatorOrString} [context=null] (optional, `null` by default) element to search in CSS|XPath|Strict locator.
18-
⚠️ returns a _promise_ which is synchronized internally by recorder
18+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/grabDataFromPerformanceTiming.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ let data = await I.grabDataFromPerformanceTiming();
1717
loadEventEnd: 241
1818
}
1919
```
20-
@return {Promise<any>} automatically synchronized promise through #recorder
20+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/moveCursorTo.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ I.moveCursorTo('#submit', 5,5);
99
@param {CodeceptJS.LocatorOrString} locator located by CSS|XPath|strict locator.
1010
@param {number} [offsetX=0] (optional, `0` by default) X-axis offset.
1111
@param {number} [offsetY=0] (optional, `0` by default) Y-axis offset.
12-
⚠️ returns a _promise_ which is synchronized internally by recorder
12+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/openNewTab.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ Open new tab and switch to it.
44
I.openNewTab();
55
```
66

7-
⚠️ returns a _promise_ which is synchronized internally by recorder
7+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/pressKey.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ I.pressKey(['Control','a']);
99
```
1010

1111
@param {string|string[]} key key or array of keys to press.
12-
⚠️ returns a _promise_ which is synchronized internally by recorder
12+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/pressKeyDown.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ I.pressKeyUp('Control');
99
```
1010

1111
@param {string} key name of key to press down.
12-
⚠️ returns a _promise_ which is synchronized internally by recorder
12+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/pressKeyUp.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ I.pressKeyUp('Control');
99
```
1010

1111
@param {string} key name of key to release.
12-
⚠️ returns a _promise_ which is synchronized internally by recorder
12+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/pressKeyWithKeyNormalization.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ Some of the supported key names are:
5757
- `'Tab'`
5858

5959
@param {string|string[]} key key or array of keys to press.
60-
⚠️ returns a _promise_ which is synchronized internally by recorder
60+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/refreshPage.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ Reload the current page.
33
```js
44
I.refreshPage();
55
```
6-
⚠️ returns a _promise_ which is synchronized internally by recorder
6+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/resizeWindow.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ First parameter can be set to `maximize`.
33

44
@param {number} width width in pixels or `maximize`.
55
@param {number} height height in pixels.
6-
⚠️ returns a _promise_ which is synchronized internally by recorder
6+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/rightClick.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ I.rightClick('Click me', '.context');
1111

1212
@param {CodeceptJS.LocatorOrString} locator clickable element located by CSS|XPath|strict locator.
1313
@param {?CodeceptJS.LocatorOrString} [context=null] (optional, `null` by default) element located by CSS|XPath|strict locator.
14-
⚠️ returns a _promise_ which is synchronized internally by recorder
14+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/saveElementScreenshot.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ I.saveElementScreenshot(`#submit`,'debug.png');
77

88
@param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
99
@param {string} fileName file name to save.
10-
⚠️ returns a _promise_ which is synchronized internally by recorder
10+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/saveScreenshot.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ I.saveScreenshot('debug.png', true) //resizes to available scrollHeight and scro
99

1010
@param {string} fileName file name to save.
1111
@param {boolean} [fullPage=false] (optional, `false` by default) flag to enable fullscreen screenshot mode.
12-
⚠️ returns a _promise_ which is synchronized internally by recorder
12+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/say.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ I.say('This is by default'); //cyan is used
77
```
88
@param {string} text expected on console log.
99
@param {string} [color='cyan'] color you want to use.
10-
⚠️ returns a _promise_ which is synchronized internally by recorder
10+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/scrollIntoView.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ I.scrollIntoView('#submit', { behavior: "smooth", block: "center", inline: "cent
88

99
@param {LocatorOrString} locator located by CSS|XPath|strict locator.
1010
@param {ScrollIntoViewOptions} scrollIntoViewOptions see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView.
11-
⚠️ returns a _promise_ which is synchronized internally by recorder
11+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/scrollPageToBottom.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ Scroll page to the bottom.
33
```js
44
I.scrollPageToBottom();
55
```
6-
⚠️ returns a _promise_ which is synchronized internally by recorder
6+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/scrollPageToTop.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ Scroll page to the top.
33
```js
44
I.scrollPageToTop();
55
```
6-
⚠️ returns a _promise_ which is synchronized internally by recorder
6+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/scrollTo.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ I.scrollTo('#submit', 5, 5);
99
@param {CodeceptJS.LocatorOrString} locator located by CSS|XPath|strict locator.
1010
@param {number} [offsetX=0] (optional, `0` by default) X-axis offset.
1111
@param {number} [offsetY=0] (optional, `0` by default) Y-axis offset.
12-
⚠️ returns a _promise_ which is synchronized internally by recorder
12+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/see.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ I.see('Register', {css: 'form.register'}); // use strict locator
88
```
99
@param {string} text expected on page.
1010
@param {?CodeceptJS.LocatorOrString} [context=null] (optional, `null` by default) element located by CSS|Xpath|strict locator in which to search for text.
11-
⚠️ returns a _promise_ which is synchronized internally by recorder
11+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/seeAttributesOnElements.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ I.seeAttributesOnElements('//form', { method: "post"});
66

77
@param {CodeceptJS.LocatorOrString} locator located by CSS|XPath|strict locator.
88
@param {object} attributes attributes and their values to check.
9-
⚠️ returns a _promise_ which is synchronized internally by recorder
9+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/seeCheckboxIsChecked.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ I.seeCheckboxIsChecked({css: '#signup_form input[type=checkbox]'});
77
```
88

99
@param {CodeceptJS.LocatorOrString} field located by label|name|CSS|XPath|strict locator.
10-
⚠️ returns a _promise_ which is synchronized internally by recorder
10+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/seeCookie.mustache

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

77
@param {string} name cookie name.
8-
⚠️ returns a _promise_ which is synchronized internally by recorder
8+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/seeCssPropertiesOnElements.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ I.seeCssPropertiesOnElements('h3', { 'font-weight': "bold"});
66

77
@param {CodeceptJS.LocatorOrString} locator located by CSS|XPath|strict locator.
88
@param {object} cssProperties object with CSS properties and their values to check.
9-
⚠️ returns a _promise_ which is synchronized internally by recorder
9+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/seeCurrentUrlEquals.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ I.seeCurrentUrlEquals('http://my.site.com/register');
88
```
99

1010
@param {string} url value to check.
11-
⚠️ returns a _promise_ which is synchronized internally by recorder
11+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/seeElement.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ Element is located by CSS or XPath.
55
I.seeElement('#modal');
66
```
77
@param {CodeceptJS.LocatorOrString} locator located by CSS|XPath|strict locator.
8-
⚠️ returns a _promise_ which is synchronized internally by recorder
8+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/seeElementInDOM.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ Element is located by CSS or XPath.
55
I.seeElementInDOM('#modal');
66
```
77
@param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
8-
⚠️ returns a _promise_ which is synchronized internally by recorder
8+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/seeInCurrentUrl.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ I.seeInCurrentUrl('/register'); // we are on registration page
55
```
66

77
@param {string} url a fragment to check
8-
⚠️ returns a _promise_ which is synchronized internally by recorder
8+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/seeInField.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ I.seeInField('#searchform input','Search');
99
```
1010
@param {CodeceptJS.LocatorOrString} field located by label|name|CSS|XPath|strict locator.
1111
@param {CodeceptJS.StringOrSecret} value value to check.
12-
⚠️ returns a _promise_ which is synchronized internally by recorder
12+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/seeInPopup.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ given string.
55
I.seeInPopup('Popup text');
66
```
77
@param {string} text value to check.
8-
⚠️ returns a _promise_ which is synchronized internally by recorder
8+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/seeInSource.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ Checks that the current page contains the given string in its raw source code.
44
I.seeInSource('<h1>Green eggs &amp; ham</h1>');
55
```
66
@param {string} text value to check.
7-
⚠️ returns a _promise_ which is synchronized internally by recorder
7+
@returns {Promise<void>} automatically synchronized promise through #recorder

docs/webapi/seeInTitle.mustache

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

77
@param {string} text text value to check.
8-
⚠️ returns a _promise_ which is synchronized internally by recorder
8+
@returns {Promise<void>} automatically synchronized promise through #recorder

0 commit comments

Comments
 (0)