2014-09-02 18:07:02 +05:30
|
|
|
@admin
|
|
|
|
Feature: Admin Projects
|
|
|
|
Background:
|
|
|
|
Given I sign in as an admin
|
|
|
|
And there are projects in system
|
|
|
|
|
2015-09-25 12:07:36 +05:30
|
|
|
Scenario: I should see non-archived projects in the list
|
|
|
|
Given archived project "Archive"
|
2014-09-02 18:07:02 +05:30
|
|
|
When I visit admin projects page
|
2015-09-25 12:07:36 +05:30
|
|
|
Then I should see all non-archived projects
|
|
|
|
And I should not see project "Archive"
|
|
|
|
|
|
|
|
Scenario: I should see all projects in the list
|
|
|
|
Given archived project "Archive"
|
|
|
|
When I visit admin projects page
|
|
|
|
And I check "Show archived projects"
|
2014-09-02 18:07:02 +05:30
|
|
|
Then I should see all projects
|
2015-09-25 12:07:36 +05:30
|
|
|
And I should see "archived" label
|
2014-09-02 18:07:02 +05:30
|
|
|
|
|
|
|
Scenario: Projects show
|
|
|
|
When I visit admin projects page
|
|
|
|
And I click on first project
|
|
|
|
Then I should see project details
|
|
|
|
|
|
|
|
Scenario: Transfer project
|
|
|
|
Given group 'Web'
|
|
|
|
And I visit admin project page
|
|
|
|
When I transfer project to group 'Web'
|
|
|
|
Then I should see project transfered
|
2015-12-23 02:04:40 +05:30
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: Signed in admin should be able to add himself to a project
|
|
|
|
Given "John Doe" owns private project "Enterprise"
|
|
|
|
When I visit project "Enterprise" members page
|
|
|
|
When I select current user as "Developer"
|
|
|
|
Then I should see current user as "Developer"
|
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: Signed in admin should be able to remove himself from a project
|
|
|
|
Given "John Doe" owns private project "Enterprise"
|
|
|
|
And current user is developer of project "Enterprise"
|
|
|
|
When I visit project "Enterprise" members page
|
|
|
|
Then I should see current user as "Developer"
|
|
|
|
When I click on the "Remove User From Project" button for current user
|
|
|
|
Then I should not see current user as "Developer"
|