Skip to content
Snippets Groups Projects
Commit 7631d4e0 authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #13670 TIME 0:15 fix front test

parent 1f241c72
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,6 @@
</div>
<span class="divider-modal"></span>
<div mat-dialog-actions *ngIf="!data.hidebutton">
<button class="actions" color="primary" mat-raised-button (click)="this.dialogRef.close();">{{lang.ok}}</button>
<button id="alertComponentClose" class="actions" color="primary" mat-raised-button (click)="this.dialogRef.close();">{{lang.ok}}</button>
</div>
</div>
......@@ -16,6 +16,15 @@ describe('Login to app', function() {
browser.takeScreenshot().then(function (png) {
ScreenshotReporter(png, 'test/e2e/screenshots/login_to_app_' + browser.browserName);
});
var alertComponent = element(by.id('alertComponentClose'));
alertComponent.isPresent().then(function(result) {
if (result) {
element(by.id('alertComponentClose')).click();
browser.sleep(500);
}
});
element(by.id('alertComponentClose')).click();
browser.sleep(500);
element(by.id('login')).sendKeys('bblier');
browser.sleep(500);
element(by.id('password')).sendKeys('maarch');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment