From 9701d4aeaefaad832b90e3459e93c867be738bf9 Mon Sep 17 00:00:00 2001 From: Mark <mark@openappstack.net> Date: Thu, 2 Apr 2020 11:20:56 +0200 Subject: [PATCH] Refactor remember me feature --- test/login_logout/test/behave/features/login.feature | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/login_logout/test/behave/features/login.feature b/test/login_logout/test/behave/features/login.feature index 3279b36..05af331 100644 --- a/test/login_logout/test/behave/features/login.feature +++ b/test/login_logout/test/behave/features/login.feature @@ -73,15 +73,14 @@ Scenario: Login without providing credentials And there is no element "input#password" on the page And the element "button#continue" is visible When I click on the element "button#continue" - Then I wait on element "input#password" for 1000ms to not exist - And I expect that element "input#username" does not exist + Then I wait on element "button#continue" for 1000ms to not exist And I expect that the path is "/callback" And I expect that element "body" contains the text "access_token" -Scenario: Login with different user +Scenario: Terminate single sign-on session Given the oauth client "logout" URL was opened And I pause for 1000ms - And the element "button#continue" is visible + And the element "button#logout" is visible When I click on the element "button#logout" Then I expect that the "error" in the json output is "Login cancelled" And I expect that the "error_description" in the json output is "Login was cancelled and user session was terminated" -- GitLab