Skip to content
Snippets Groups Projects
Verified Commit 9701d4ae authored by Mark's avatar Mark
Browse files

Refactor remember me feature

parent 61a85b87
No related branches found
No related tags found
1 merge request!24Resolve "Add tests for remember me button"
Pipeline #3438 passed with stage
in 2 minutes and 2 seconds
...@@ -73,15 +73,14 @@ Scenario: Login without providing credentials ...@@ -73,15 +73,14 @@ Scenario: Login without providing credentials
And there is no element "input#password" on the page And there is no element "input#password" on the page
And the element "button#continue" is visible And the element "button#continue" is visible
When I click on the element "button#continue" When I click on the element "button#continue"
Then I wait on element "input#password" for 1000ms to not exist Then I wait on element "button#continue" for 1000ms to not exist
And I expect that element "input#username" does not exist
And I expect that the path is "/callback" And I expect that the path is "/callback"
And I expect that element "body" contains the text "access_token" 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 Given the oauth client "logout" URL was opened
And I pause for 1000ms 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" When I click on the element "button#logout"
Then I expect that the "error" in the json output is "Login cancelled" 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" And I expect that the "error_description" in the json output is "Login was cancelled and user session was terminated"
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