From 85462be268e782e0444e8d0141d883896e7bdc22 Mon Sep 17 00:00:00 2001 From: Clement Michaud Date: Sun, 3 Sep 2017 15:02:38 +0200 Subject: [PATCH] Wait for notifications to fade out before going forward in integration test steps. --- test/features/redirection.feature | 2 +- test/features/step_definitions/notifications.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/features/redirection.feature b/test/features/redirection.feature index eaafa7d04..760f23436 100644 --- a/test/features/redirection.feature +++ b/test/features/redirection.feature @@ -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 Given I'm on https://home.test.local:8080 diff --git a/test/features/step_definitions/notifications.ts b/test/features/step_definitions/notifications.ts index 91658134c..3a068129b 100644 --- a/test/features/step_definitions/notifications.ts +++ b/test/features/step_definitions/notifications.ts @@ -20,7 +20,7 @@ Cucumber.defineSupportCode(function ({ Given, When, Then }) { }) .then(function (classes: string) { 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); }); });