jeudi 23 juin 2016

Putting browser.get() into it()

Protractor style guide recommends against navigating to a page inside it() explaining the motivation the following way:

Why? - Assures you that the page under test is in a clean state

I'm not sure I completely understand the motivation.

What does the clean state mean in this context? What can go wrong if browser.get() is put into it() instead of beforeEach() or beforeAll()?

Aucun commentaire:

Enregistrer un commentaire