Protractor tests inconsistently passing / failing for AngularJS app

后端 未结 3 1472
野趣味
野趣味 2021-01-31 20:20

My Protractor e2e tests are inconsistently passing and failing.

It seems this could be due to asynchronous javascript, as discussed here: Protractor : How to wait for

3条回答
  •  别跟我提以往
    2021-01-31 20:57

    browser.ignoreSynchronization = true; has a global effect for all your tests. you may have to set it back to false, so protractor waits for angular to be finished rendering the page. e.g. in or before your second beforeEach function

提交回复
热议问题