permission tests for copy button

pull/495/head
jwollert 11 years ago
parent 32b9bd279b
commit 8afe6fcd65
  1. 29
      features/projects/copy_project.feature

@ -3,8 +3,35 @@ Feature: Project Settings
Given there is 1 project with the following:
| name | project1 |
| identifier | project1 |
And there is 1 user with the following:
| login | bob |
| firstname | Bob |
| Lastname | Bobbit |
And there is 1 user with the following:
| login | alice |
| firstname | Alice |
| Lastname | Alison |
And there is a role "alpha"
And there is a role "beta"
And the role "alpha" may have the following rights:
| copy_projects |
| edit_project |
And the role "beta" may have the following rights:
| edit_project |
And the user "alice" is a "alpha" in the project "project1"
And the user "bob" is a "beta" in the project "project1"
Scenario: Check for the existence of a copy button
When I am already admin
And I go to the members tab of the settings page of the project "project1"
Then I should see "Copy" within ".action_menu_main"
Then I should see "Copy" within "#content"
Scenario: Permission test for copy button with authorized role
When I am already logged in as "alice"
And I go to the members tab of the settings page of the project "project1"
Then I should see "Copy" within "#content"
Scenario: Permission test for copy button without authorized role
When I am already logged in as "bob"
And I go to the members tab of the settings page of the project "project1"
Then I should not see "Copy" within "#content"

Loading…
Cancel
Save