Skip to content

Commit

Permalink
Issue openeuropa#83: Add a test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiu-cristea committed Jun 4, 2019
1 parent 8014b98 commit e543327
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/features/ecas-register.feature
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"

0 comments on commit e543327

Please sign in to comment.