I'm using Protractor (v 1.3.1) to run E2E tests for my Angular 1.2.26 application.
But sometimes, tests are ok, sometimes not. It seems that sometimes the check is done before display is updated (or something like "synchronisation" problem).
I try many options :
- add
browser.driver.sleep
instructions,
- disable effects with
browser.executeScript('$.fx.off = true')
- add
browser.waitForAngular()
instructions
without success.
What are the bests practice to have reliables E2E tests with protractor?
JM.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…