Reputation: 55
I have the following problem:
In my application I have different submenus and I am testing every submenu in an own spec.
For one spec I need to have native events set to true, but for another spec I need to set native events to false. I tried to write in my spec in the first describe:
browser.nativeEvents = false;
and tried to switch the setting (default value is true) but it doesn't work. I also tried in my spec:
beforeAll(() => { browser.nativeEvents = false });
afterAll(() => { browser.nativeEvents = true });
Is there a possibility to change the capability for a spec?
Upvotes: 3
Views: 461
Reputation: 911
I did it in my test cases waitForAngularEnabled
to true for one spec and false for other. Instead of doing it in afterAll
You can do it in beforeAll
of each spec file
Upvotes: 0