I went through an Angular application that I am working on, testing CRUD functionality with Protractor for all parts of the application. All CRUD pages have create / edit buttons, and buttons, no matter which page you are on, open the same modal way to create or edit.
I am constantly facing the problem above. I literally ran the test and it will give me this error, and will not open the modal, then I will run it again and it will open the modal and the exact exact test will pass. Then try again to make sure it is not working again. Ect
This is rather unpleasant, since problems with your tests seem to be a problem in the browser / test suite, and not in the code itself. To be clear, I am testing this in Chrome.
What will be the way to solve this type of problem, where the problem is the inconsistency of passage and failure? I donβt understand which setting should be fixed.
source share