Skip to content

Commit ed48caf

Browse files
Add back action before logout
1 parent 9318e7b commit ed48caf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

e2e/elements/menuBar.element/index.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { by, element, promise } from 'protractor';
1+
import { by, element, promise, browser } from 'protractor';
22
import { CreateOptions } from './create.options';
33
import { TestsOptions } from './tests.options';
44
import { AuditsOptions } from './audits.options';
@@ -21,7 +21,10 @@ export class MenuBar {
2121
: undefined;
2222
}
2323

24-
clickLogOut() {
24+
async clickLogOut() {
25+
if(element(by.css('.loader')).isPresent()) {
26+
browser.navigate().back();
27+
}
2528
return element(by.id('logout')).click();
2629
}
2730

0 commit comments

Comments
 (0)