Self healing test is not healing more than 2 test scenarios #4534
Unanswered
Naveen-web-spec
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have added a self healing test for seeCheckboxIsChecked.In one of the test module there are 4 tests scenarios failing for the same step of (I.selectAllCheckbox()). But it only heals 2 scenarios . If I try to run each scenario individually it heals all the test individually but if I tried to run the module it's only heals 2 . Remaining 2 gets failed every time.
`heal.addRecipe('selectAllCheckbox', {
priority: 1,
steps: ['seeCheckboxIsChecked'],
grep: '@flaky',
fn: async () => {
return ({ I }) => {
I.refreshPage();
I.wait(2)
I.dontSeeCheckboxIsChecked(locate('[type="checkbox"]').at(2))
I.click("[class='v-selection-control__input']")
I.seeCheckboxIsChecked(locate('[type="checkbox"]').at(2))
};
},
});`
Beta Was this translation helpful? Give feedback.
All reactions