Logo: Relish

  1. Sign in

Project: Console

Login or Sign Up With Redirect URI

  • @dxpcloud
  • @paas
  • @logout

User can login via CLI, which opens the browser to login/signup page with
the redirect URI appended to the login/signup url. Successful login/signup
redirects to this URI.

Scenarios
Successful login
Given
I visit "login" page with Redirect-URI
When
I enter "{test user}" into the Email field
And
I enter "[email protected]" into the "Password" input field
And
I click the "Log in" button
Then
the browser should redirect to the Redirect-URI
Login with wrong password
Given
I visit "login" page with Redirect-URI
When
I enter "{test user}" into the Email field
And
I enter "test123" into the "Password" input field
And
I click the "Log in" button
Then
I should see the error message
The provided credentials are invalid.
And
the browser url should have the Redirect-URI appended
  • @teardown_users
Successful sign up
Given
I visit "signup" page with Redirect-URI
When
I enter "Test Test" into the "Name" input field
And
I enter "[email protected]" into the Email field
And
I enter "[email protected]" into the "Password" input field
And
I enter "[email protected]" into the "Confirm password" input field
And
I click the "Create an account" button
Then
the browser should redirect to the Redirect-URI
Sign up with existing email
Given
I visit "signup" page with Redirect-URI
When
I enter "Tester" into the "Name" input field
And
I enter "{test user}" into the Email field
And
I enter "[email protected]" into the "Password" input field
And
I enter "[email protected]" into the "Confirm password" input field
And
I click the "Create an account" button
Then
I should see the error message
The email provided is invalid or is already being used. Try a different one.
And
the browser url should have the Redirect-URI appended
Login with invalid Redirect-URI
When
I visit "login" page with an invalid Redirect-URI
Then
I should see the text "Our servers couldn’t understand your request."
Sign up with invalid Redirect-URI
When
I visit "signup" page with an invalid Redirect-URI
Then
I should see the text "Our servers couldn’t understand your request."
Redirect login when already logged in
Given
I sign in to WeDeploy as a test user
When
I visit "login" page with Redirect-URI
Then
the browser should redirect to the Redirect-URI
  • @teardown_tester
Redirect sign up when already logged in
Given
I sign in to WeDeploy as a test user
When
I visit "signup" page with Redirect-URI
Then
the browser should redirect to the Redirect-URI

Last published 10 months ago by Christie Yoo.