codemod
codemod copied to clipboard
Missing await keyword
The async scripts works very well, thank you!
One note though, is that it forgets to add the await keyword on lines like this one:
const inputClassic = $(selectors.inputClassic);
where it should transform those into:
const inputClassic = await $(selectors.inputClassic);.
Do note that it does add the await keyword in lines like that:
expect($(selectors.elementP1).getText()).toEqual('2.140%');
(to: expect(await $(selectors.elementP1).getText()).toEqual('2.140%');)
Thanks for reporting, this should indeed be changed, ideally to:
await expect($(selectors.elementP1)).toHaveText('2.140%');