CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

[Customize Helper] How to define an async customize helper

Open SonNguyenVN opened this issue 4 years ago • 0 comments

What are you trying to achieve?

Define a customize helper with async

What do you get instead?

When calling customize helper method (myAsyncMethod), it does not wait to finish method

test

Feature('LoginNavigate');

Scenario('Login to Demo site', async ( I ) => { await I.launchChannel(); });

helper class

async launchChannel() { await myAsyncMethod() // it does not wait for this method finish }

SonNguyenVN avatar Jan 10 '22 18:01 SonNguyenVN