We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9318e7b commit ed48cafCopy full SHA for ed48caf
e2e/elements/menuBar.element/index.ts
@@ -1,4 +1,4 @@
1
-import { by, element, promise } from 'protractor';
+import { by, element, promise, browser } from 'protractor';
2
import { CreateOptions } from './create.options';
3
import { TestsOptions } from './tests.options';
4
import { AuditsOptions } from './audits.options';
@@ -21,7 +21,10 @@ export class MenuBar {
21
: undefined;
22
}
23
24
- clickLogOut() {
+ async clickLogOut() {
25
+ if(element(by.css('.loader')).isPresent()) {
26
+ browser.navigate().back();
27
+ }
28
return element(by.id('logout')).click();
29
30
0 commit comments