Official documentation says that logging in before every test over UI is "anti-pattern". I wanted to implement that but I'm so confused how to actual do it. What I need to have, where to find it, how to actually login into app over "request" and then processed with UI. In this moment I have something like this
In every test I have, something like this
it('Login into app', function () {
loginPage.login(username, password)
})
which is login over UI. So, if I understood correctly, only "TEST_1" should have login over UI and rest of the cases over "request". Or, "Login" should be completely separate test, doesn't matter in this moment.
My question is:"What information do I need to have, where in the Developer tools can I find that information and how to implement all of that?" Any hint, video, blog, tutorial, course...will be more than helpful. Thank you

Aucun commentaire:
Enregistrer un commentaire