Skip to content

Commit fd497a9

Browse files
author
DavertMik
committed
fixed def
1 parent 371698e commit fd497a9

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

docs/plugins.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ Scenario('login', async ({ I, login }) => {
285285
Add descriptive nested steps for your tests:
286286

287287
```js
288-
Scenario('project update test', async (I) => {
288+
Scenario('project update test', async I => {
289289
__`Given`
290290
const projectId = await I.have('project')
291291

@@ -559,7 +559,7 @@ Example of usage:
559559
560560
```js
561561
// this example works with Playwright and Puppeteer helper
562-
await eachElement('click all checkboxes', 'form input[type=checkbox]', async (el) => {
562+
await eachElement('click all checkboxes', 'form input[type=checkbox]', async el => {
563563
await el.click()
564564
})
565565
```
@@ -578,7 +578,7 @@ Check all elements for visibility:
578578
```js
579579
// this example works with Playwright and Puppeteer helper
580580
const assert = require('assert')
581-
await eachElement('check all items are visible', '.item', async (el) => {
581+
await eachElement('check all items are visible', '.item', async el => {
582582
assert(await el.isVisible())
583583
})
584584
```
@@ -750,7 +750,7 @@ Use scenario configuration to disable plugin for a test
750750
```js
751751
Scenario('scenario tite', () => {
752752
// test goes here
753-
}).config((test) => (test.disableRetryFailedStep = true))
753+
}).config(test => (test.disableRetryFailedStep = true))
754754
```
755755
756756
### Parameters
@@ -775,7 +775,7 @@ Use it in your tests:
775775
776776
```js
777777
// retry these steps 5 times before failing
778-
await retryTo((tryNum) => {
778+
await retryTo(tryNum => {
779779
I.switchTo('#editor frame')
780780
I.click('Open')
781781
I.see('Opened')
@@ -787,7 +787,7 @@ Set polling interval as 3rd argument (200ms by default):
787787
```js
788788
// retry these steps 5 times before failing
789789
await retryTo(
790-
(tryNum) => {
790+
tryNum => {
791791
I.switchTo('#editor frame')
792792
I.click('Open')
793793
I.see('Opened')

typings/jsdoc.conf.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ module.exports = {
1010
'./lib/data/dataTableArgument.js',
1111
'./lib/event.js',
1212
'./lib/index.js',
13-
'./lib/interfaces',
1413
'./lib/locator.js',
1514
'./lib/output.js',
1615
'./lib/pause.js',
@@ -19,7 +18,11 @@ module.exports = {
1918
'./lib/session.js',
2019
'./lib/step.js',
2120
'./lib/store.js',
22-
'./lib/ui.js',
21+
'./lib/mocha/ui.js',
22+
'./lib/mocha/featureConfig.js',
23+
'./lib/mocha/scenarioConfig.js',
24+
'./lib/mocha/bdd.js',
25+
'./lib/mocha/hooks.js',
2326
'./lib/within.js',
2427
require.resolve('@codeceptjs/detox-helper'),
2528
require.resolve('@codeceptjs/helper'),
@@ -31,4 +34,4 @@ module.exports = {
3134
destination: './typings/',
3235
},
3336
plugins: ['jsdoc.namespace.js', 'jsdoc-typeof-plugin'],
34-
};
37+
}

0 commit comments

Comments
 (0)