Wait for notifications to fade out before going forward in integration test steps.

pull/75/head
Clement Michaud 2017-09-03 15:02:38 +02:00
parent 98aa23ed5e
commit 85462be268
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
Feature: User is correctly redirected correctly Feature: User is correctly redirected
Scenario: User is redirected to authelia when he is not authenticated Scenario: User is redirected to authelia when he is not authenticated
Given I'm on https://home.test.local:8080 Given I'm on https://home.test.local:8080

View File

@ -20,7 +20,7 @@ Cucumber.defineSupportCode(function ({ Given, When, Then }) {
}) })
.then(function (classes: string) { .then(function (classes: string) {
Assert(classes.indexOf(notificationType) > -1, "Class '" + notificationType + "' not found in notification element."); Assert(classes.indexOf(notificationType) > -1, "Class '" + notificationType + "' not found in notification element.");
// return that.driver.wait(seleniumWebdriver.until.elementIsNotVisible(notificationEl), 6000); return that.driver.sleep(500);
}); });
}); });