BigW Consortium Gitlab

projects.feature 1.6 KB
Newer Older
1
@admin
2 3 4 5 6
Feature: Admin Projects
  Background:
    Given I sign in as an admin
    And there are projects in system

Artem Sidorenko committed
7 8
  Scenario: I should see non-archived projects in the list
    Given archived project "Archive"
9
    When I visit admin projects page
Artem Sidorenko committed
10 11 12
    Then I should see all non-archived projects
    And I should not see project "Archive"

13
  @javascript
Artem Sidorenko committed
14 15 16
  Scenario: I should see all projects in the list
    Given archived project "Archive"
    When I visit admin projects page
17
    And I select "Show archived projects"
18
    Then I should see all projects
Artem Sidorenko committed
19
    And I should see "archived" label
20 21 22 23 24

  Scenario: Projects show
    When I visit admin projects page
    And I click on first project
    Then I should see project details
25

26
  @javascript
27 28 29 30 31
  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
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47

  @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"