project.feature 2.82 KB
Newer Older
1
Feature: Project
2
  Background:
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
3
    Given I sign in as a user
4
    And I own project "Shop"
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
5
    And project "Shop" has push event
6
    And I visit project "Shop" page
7

8 9 10 11 12 13 14 15 16 17 18 19 20
  Scenario: I edit the project avatar
    Given I visit edit project "Shop" page
    When I change the project avatar
    And I should see new project avatar
    And I should see the "Remove avatar" button

  Scenario: I remove the project avatar
    Given I visit edit project "Shop" page
    And I have an project avatar
    When I remove my project avatar
    Then I should see the default project avatar
    And I should not see the "Remove avatar" button

21 22 23 24 25 26 27 28 29
  Scenario: I should have back to group button
    And project "Shop" belongs to group
    And I visit project "Shop" page
    Then I should see back to group button

  Scenario: I should have back to group button
    And I visit project "Shop" page
    Then I should see back to dashboard button

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
30 31 32 33
  Scenario: I should have readme on page
    And I visit project "Shop" page
    Then I should see project "Shop" README

34 35 36 37 38 39
  Scenario: I should see last commit with CI
    Given project "Shop" has CI enabled
    Given project "Shop" has CI build
    And I visit project "Shop" page
    And I should see last commit with CI status

40
  @javascript
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
41
  Scenario: I should see project activity
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
42
    When I visit project "Shop" activity page
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
43
    Then I should see project "Shop" activity feed
44

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
45 46 47 48 49 50 51 52 53
  Scenario: I visit edit project
    When I visit edit project "Shop" page
    Then I should see project settings

  Scenario: I edit project
    When I visit edit project "Shop" page
    And change project settings
    And I save project
    Then I should see project with new settings
54 55 56 57 58

  Scenario: I change project path
    When I visit edit project "Shop" page
    And change project path settings
    Then I should see project with new path settings
59

60 61 62 63 64
  Scenario: I should change project default branch
    When I visit edit project "Shop" page
    And change project default branch
    And I save project
    Then I should see project default branch changed
65

66 67 68 69 70 71
  Scenario: I tag a project
    When I visit edit project "Shop" page
    Then I should see project settings
    And I add project tags
    And I save project
    Then I should see project tags
72 73 74 75 76 77

  Scenario: I should not see "New Issue" or "New Merge Request" buttons
    Given I disable issues and merge requests in project
    When I visit project "Shop" page
    Then I should not see "New Issue" button
    And I should not see "New Merge Request" button
78 79 80 81 82

  Scenario: I should not see Project snippets
    Given I disable snippets in project
    When I visit project "Shop" page
    Then I should not see "Snippets" button
83 84 85 86 87 88

  @javascript
  Scenario: I edit Project Notifications
    Given I click notifications drop down button
    When I choose Mention setting
    Then I should see Notification saved message