-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase Behat test coverage for locale features
Switching to different locales is covered. And the correct working of the stepup-locale cookie is proven
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 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 |
---|---|---|
|
@@ -13,6 +13,30 @@ Feature: When an user needs to register for a new token | |
And the SAML Response should contain element "StatusCode" with attribute "Value" with attribute value "urn:oasis:names:tc:SAML:2.0:status:Success" | ||
And the SAML Response should contain element "NameID" with value containing "[email protected]" | ||
|
||
Scenario: The user is presented the page in his preferred language based on stepup-locale cookie NL | ||
Given I have "nl" set as my stepup-locale cookie value | ||
And I send a registration request request to "https://azure-mfa.stepup.example.com/saml/sso" | ||
Then I should see "Registratie" | ||
|
||
Scenario: The user is presented the page in his preferred language based on stepup-locale cookie EN | ||
Given I have "en" set as my stepup-locale cookie value | ||
And I send a registration request request to "https://azure-mfa.stepup.example.com/saml/sso" | ||
Then I should see "Registration" | ||
|
||
Scenario: When a user is registering a new token and switches back and forth from English to Dutch language during registration | ||
Given I send a registration request request to "https://azure-mfa.stepup.example.com/saml/sso" | ||
Then I should see "Registration" | ||
And I follow "NL" | ||
Then I should see "Registratie" | ||
And I follow "EN" | ||
Then I should see "Registration" | ||
And I fill in "Email address" with "[email protected]" | ||
When I press "Submit" | ||
And I press "Submit-success" | ||
Then I should be on "https://azure-mfa.stepup.example.com/saml/sso_return" | ||
And the SAML Response should contain element "StatusCode" with attribute "Value" with attribute value "urn:oasis:names:tc:SAML:2.0:status:Success" | ||
And the SAML Response should contain element "NameID" with value containing "[email protected]" | ||
|
||
Scenario: When a user is registering a new token, authentication at Azure MFA fails | ||
Given I send a registration request request to "https://azure-mfa.stepup.example.com/saml/sso" | ||
Then I should see "Registration" | ||
|