-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* aloe: prefix dd features with dd_ * tests: don't user runserver_plus for tests * allow aloe tests against dev fixtures and some simple tests
- Loading branch information
Showing
13 changed files
with
157 additions
and
8 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
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 |
---|---|---|
@@ -0,0 +1,82 @@ | ||
Feature: Admin Page and Settings | ||
As a RDRF registry owner | ||
I want admin users to have access to admin pages and settings | ||
In order to do administrative tasks using the Web UI | ||
|
||
Background: | ||
Given development fixtures | ||
Given a registry named "Sample Registry" | ||
|
||
Scenario: Admin user drop-down has Admin Page item | ||
Given I am logged in as admin | ||
When I click the User Dropdown Menu | ||
Then I should see a link to "Admin Page" | ||
|
||
Scenario: Admin user has Settings in main menu | ||
Given I am logged in as admin | ||
When I click the User Dropdown Menu | ||
Then I should see a link to "Settings" | ||
|
||
Scenario: Curator user drop-down DOES NOT have Admin Page item | ||
Given I am logged in as curator | ||
When I click the User Dropdown Menu | ||
Then I should NOT see a link to "Admin Page" | ||
|
||
Scenario: Curator user DOES NOT Settings in main menu | ||
Given I am logged in as curator | ||
Then I should NOT see a link to "Settings" | ||
|
||
Scenario: Admin user opens Settings menu | ||
Given I am logged in as admin | ||
When I click "Settings" | ||
Then I should see a link to "Registries" | ||
And I should see a link to "Registry Form" | ||
And I should see a link to "Sections" | ||
And I should see a link to "Data Elements" | ||
And I should see a link to "CDE Policy" | ||
And I should see a link to "Permissible Value Groups" | ||
And I should see a link to "Permissible Values" | ||
And I should see a link to "Consent Sections" | ||
And I should see a link to "Consent Values" | ||
And I should see a link to "Groups" | ||
And I should see a link to "Importer" | ||
And I should see a link to "Explorer" | ||
And I should see a link to "Demographics Fields" | ||
And I should see a link to "Next of Kin Relationship" | ||
And I should see a link to "Registration Profiles" | ||
And I should see a link to "Email Notifications" | ||
And I should see a link to "Email Templates" | ||
And I should see a link to "Email Notifications History" | ||
|
||
|
||
Scenario: Admin user visits Admin Page | ||
Given I am logged in as admin | ||
When I click the User Dropdown Menu | ||
And I click "Admin Page" | ||
Then I should see a link to "Patient List" | ||
And I should see a link to "Other Clinicians" | ||
And I should see a link to "Doctors" | ||
And I should see a link to "Reports" | ||
And I should see a link to "Users" | ||
And I should see a link to "Genes" | ||
And I should see a link to "Laboratories" | ||
And I should see a link to "Registries" | ||
And I should see a link to "Registry Form" | ||
And I should see a link to "Sections" | ||
And I should see a link to "Data Elements" | ||
And I should see a link to "CDE Policy" | ||
And I should see a link to "Permissible Value Groups" | ||
And I should see a link to "Permissible Values" | ||
And I should see a link to "Consent Sections" | ||
And I should see a link to "Consent Values" | ||
And I should see a link to "Groups" | ||
And I should see a link to "Importer" | ||
And I should see a link to "Explorer" | ||
And I should see a link to "Demographics Fields" | ||
And I should see a link to "Next of Kin Relationship" | ||
And I should see a link to "Registration Profiles" | ||
And I should see a link to "Email Notifications" | ||
And I should see a link to "Email Templates" | ||
And I should see a link to "Email Notifications History" | ||
And I should see a link to "Working Groups" | ||
And I should see a link to "States" |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Feature: IPRestrict is enabled and working | ||
As a RDRF registry owner | ||
I want to retrict access by IP to all or part of the application | ||
|
||
Background: | ||
Given development fixtures | ||
Given a registry named "Sample Registry" | ||
|
||
Scenario: Admin user blocks useraudit to localhost | ||
Given I am logged in as admin | ||
When I click "Settings" | ||
And I click "IP Restrict Rules" | ||
Then I should see "Rules" | ||
And I click "Add" | ||
And I fill in "Url pattern" with ".*useraudit.*" | ||
And I select "localhost" from "Ip group" | ||
And I select "DENY" from "Action" | ||
And I save the form | ||
Then I should see "added successfully" | ||
Given I reload iprestrict | ||
When I click "Settings" | ||
And I click "User Login Log" | ||
Then I should see "Looks like you don't have access to this page" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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