You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
heal.addRecipe('clickAndType',{priority: 1,steps: ['fillField','appendField',],fn: async({ step })=>{constlocator=step.args[0];consttext=step.args[1];return({ I })=>{console.log("HEALING THE FILL_FIELD FUNCTION "+locator);I.click(locator);I.wait(1);// to open modal or somethingI.type(text);};},});heal.addRecipe("waitForVisibleThenClick",{priority: 1,steps: ["click"],fn: async({ step })=>{constlocator=step.args[0];return({ I })=>{console.log("HEALING THE CLICK FUNCTION "+locator);I.waitForVisible(locator,8);I.click(locator);};},});
And then I have a failing step I.click('#mat-mdc-checkbox-1-input');
When I run my tests, I've noticed that the clickAndType recipe is being called instead of the waitForVisibleThenClick recipe yet clickAndType recipe has not been defined for the click step. Same thing happens even when I change the priorities such that waitForVisibleThenClick has a higher priority. Also, when I comment-out the clickAndType recipe, now the waitForVisibleThenClick is called, which indicates that it was formerly not being called because clickAndType was being called.
Any hints?
Details
CodeceptJS version: 3.6.2
NodeJS Version: 20.12.2
Operating System: Windows 11
Playwright Helper
The text was updated successfully, but these errors were encountered:
I have two healers defined as follows:
And then I have a failing step
I.click('#mat-mdc-checkbox-1-input');
When I run my tests, I've noticed that the
clickAndType
recipe is being called instead of thewaitForVisibleThenClick
recipe yetclickAndType
recipe has not been defined for the click step. Same thing happens even when I change the priorities such thatwaitForVisibleThenClick
has a higher priority. Also, when I comment-out theclickAndType
recipe, now thewaitForVisibleThenClick
is called, which indicates that it was formerly not being called becauseclickAndType
was being called.Any hints?
Details
The text was updated successfully, but these errors were encountered: