Protractor: onPrepare for different test suites

I have onPrepare in my conf.js file where I enter the application. I understand that every time I run 1 or more test suites, it first does everything onPrepare does. This is great since I use onPrepare to log in to the application before running the tests.

The problem is that I do not want to log in when I launch my login-spec.js package.

I could log out first before running login-spec.js, but there should be a more elegant way to do this.

+4
source share
1 answer

As I understand it, you need a place to prepare individual programs.

, jasmine .

jasmine 2.1 beforeAll afterAll :

beforeAll , , afterAll . .

jasmine, jasmine-beforeAll .

+3

Source: https://habr.com/ru/post/1570406/


All Articles