forked from openeuropa/oe_authentication
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue openeuropa#83: Add a test case.
- Loading branch information
1 parent
8014b98
commit e543327
Showing
1 changed file
with
11 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,22 @@ | ||
@javascript @ecas-login | ||
@api @javascript @ecas-login | ||
Feature: Register through OE Authentication | ||
In order to be able to have new users | ||
As an anonymous user of the system | ||
I need to be able to go to the registration URL | ||
|
||
@DrupalLogin @BackupAuthConfigs @RebuildRouter | ||
Scenario: Register | ||
Given I am an anonymous user | ||
When I visit "the user registration page" | ||
# Redirected to the Ecas mockup server. | ||
And I click "External" | ||
Then I should see "Create an account" | ||
|
||
Given I am logged in as a user with the "administer authentication configuration" permission | ||
When I am on "the Authentication configuration page" | ||
And I uncheck "Redirect user registration route to EU Login" | ||
Then I press "Save configuration" | ||
|
||
Given I am an anonymous user | ||
When I visit "the user registration page" | ||
Then I should see "Create new account" |