Can someone help me passing this test using Self healing? Self Healer not Overriding. #4942
Unanswered
vatsal-7781
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 am trying to implement Codecept's self healer into my tests ( Setting up AI Provider , Self Healing Codecept )
First to test this,
in my test cases, i tried finding and filling an input called(input type)
username
, but in the index.html, it's calledemail
So I want the self healer to suggest and override the test case with correct suggestion to pass the test, instead of failing it.
After following all the steps to implement self healer and logging the AI suggestions.
I can see that AI Model is producing correct suggestions which is to try
input[name='email']
instead ofI.fillField({ name: 'username' }, 'fakeuser@example.com');
, but i am failing to implement the logic, such that, it overrides the incorrect test case with the correct one.here are some files and output for context:
steps_file.js:
static_test.js:
codecept.conf.js:
heal.js:
index.html:
Output:
Just as it should, it says that 1 Step was healed. But i think it's failing top override it.
Can someone help me passing this test using Self healing?
Beta Was this translation helpful? Give feedback.
All reactions