@@ -285,7 +285,7 @@ Scenario('login', async ({ I, login }) => {
285285Add 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
580580const 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
751751Scenario (' 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
789789await retryTo (
790- ( tryNum ) => {
790+ tryNum => {
791791 I .switchTo (' #editor frame' )
792792 I .click (' Open' )
793793 I .see (' Opened' )
0 commit comments