Skip to content

Commit

Permalink
fixed def
Browse files Browse the repository at this point in the history
  • Loading branch information
DavertMik committed Jan 4, 2025
1 parent 371698e commit fd497a9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
12 changes: 6 additions & 6 deletions docs/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ Scenario('login', async ({ I, login }) => {
Add descriptive nested steps for your tests:

```js
Scenario('project update test', async (I) => {
Scenario('project update test', async I => {
__`Given`
const projectId = await I.have('project')

Expand Down Expand Up @@ -559,7 +559,7 @@ Example of usage:
```js
// this example works with Playwright and Puppeteer helper
await eachElement('click all checkboxes', 'form input[type=checkbox]', async (el) => {
await eachElement('click all checkboxes', 'form input[type=checkbox]', async el => {
await el.click()
})
```
Expand All @@ -578,7 +578,7 @@ Check all elements for visibility:
```js
// this example works with Playwright and Puppeteer helper
const assert = require('assert')
await eachElement('check all items are visible', '.item', async (el) => {
await eachElement('check all items are visible', '.item', async el => {
assert(await el.isVisible())
})
```
Expand Down Expand Up @@ -750,7 +750,7 @@ Use scenario configuration to disable plugin for a test
```js
Scenario('scenario tite', () => {
// test goes here
}).config((test) => (test.disableRetryFailedStep = true))
}).config(test => (test.disableRetryFailedStep = true))
```
### Parameters
Expand All @@ -775,7 +775,7 @@ Use it in your tests:
```js
// retry these steps 5 times before failing
await retryTo((tryNum) => {
await retryTo(tryNum => {
I.switchTo('#editor frame')
I.click('Open')
I.see('Opened')
Expand All @@ -787,7 +787,7 @@ Set polling interval as 3rd argument (200ms by default):
```js
// retry these steps 5 times before failing
await retryTo(
(tryNum) => {
tryNum => {
I.switchTo('#editor frame')
I.click('Open')
I.see('Opened')
Expand Down
9 changes: 6 additions & 3 deletions typings/jsdoc.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ module.exports = {
'./lib/data/dataTableArgument.js',
'./lib/event.js',
'./lib/index.js',
'./lib/interfaces',
'./lib/locator.js',
'./lib/output.js',
'./lib/pause.js',
Expand All @@ -19,7 +18,11 @@ module.exports = {
'./lib/session.js',
'./lib/step.js',
'./lib/store.js',
'./lib/ui.js',
'./lib/mocha/ui.js',
'./lib/mocha/featureConfig.js',
'./lib/mocha/scenarioConfig.js',
'./lib/mocha/bdd.js',
'./lib/mocha/hooks.js',
'./lib/within.js',
require.resolve('@codeceptjs/detox-helper'),
require.resolve('@codeceptjs/helper'),
Expand All @@ -31,4 +34,4 @@ module.exports = {
destination: './typings/',
},
plugins: ['jsdoc.namespace.js', 'jsdoc-typeof-plugin'],
};
}

0 comments on commit fd497a9

Please sign in to comment.