-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #103 from pantheon-systems/feature/deep-links
Forward 'redirect_to' to SAML Authentication to enable deep links
- Loading branch information
Showing
2 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,16 @@ Feature: SAML Login | |
Then print current URL | ||
Then the "email" field should contain "[email protected]" | ||
|
||
Scenario: Redirects using the 'redirect_to' field | ||
Given I am on "wp-login.php?redirect_to=/sample-page/" | ||
Then print current URL | ||
And I fill in "username" with "employee" | ||
And I fill in "password" with "employeepass" | ||
And I press "submit" | ||
And I press "Submit" | ||
Then print current URL | ||
Then I should see "Sample Page" in the ".entry-title" element | ||
|
||
Scenario: Errors on an invalidpassword | ||
Given I am on "wp-login.php" | ||
Then print current URL | ||
|