From 639fed9e2a81d11619eb165dbf970aa895a44781 Mon Sep 17 00:00:00 2001 From: Mark <mark@openappstack.net> Date: Thu, 5 Dec 2019 12:01:20 +0100 Subject: [PATCH] Change behave pattern to given when then --- test/login_logout/test/behave/features/login.feature | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/login_logout/test/behave/features/login.feature b/test/login_logout/test/behave/features/login.feature index e2813d7..b4752a2 100644 --- a/test/login_logout/test/behave/features/login.feature +++ b/test/login_logout/test/behave/features/login.feature @@ -16,8 +16,10 @@ Scenario: Login with a valid user with access to application And I enter the "password" in the inputfield "input#password" And I click on the button "input#submit" Then I wait on element "input#password" for 1000ms to not exist - And I expect that element "input#username" does not exist - And I expect that the path is "/callback" + +Scenario: Wait for the oAuth flow to finish and check if access token is present + Given the element "input#password" does not exist + Then I expect that the path is "/callback" And I expect that element "body" contains the text "access_token" Scenario: Get OpenID Connect userdata for testuser -- GitLab