I've been going through an Angular app I'm working on, testing out CRUD functionality using Protractor for all the different parts of the app. All CRUD pages have create/edit buttons, and the buttons, regardless of what page you're on, all open the same modal whether they are creating or editing.
I am inconsistently running into the issue above. I literally will run the test and it will give me this error and not open the modal, then I'll run it again, and it will open the modal and the same exact test will pass. Then try again to make sure and it fails again. ETC
It's pretty annoying to have the only issues with your tests seem to be an issue with the browser/test suite, and not the actual code. Just to be clear I'm testing this in Chrome.
What would be the way of handling this type of issue, where the problem is the inconsistency of the passing and failing? It's unclear to me exactly what setting needs to be fixed.