BigW Consortium Gitlab

commits.feature 3.31 KB
Newer Older
Douwe Maan committed
1
@project_commits
2
Feature: Project Commits
3 4
  Background:
    Given I sign in as a user
5 6
    And I own a project
    And I visit my project's commits page
Dmitriy Zaporozhets committed
7 8 9

  Scenario: I browse commits list for master branch
    Then I see project commits
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
    And I should not see button to create a new merge request
    Then I click the "Compare" tab
    And I should not see button to create a new merge request

  Scenario: I browse commits list for feature branch without a merge request
    Given I visit commits list page for feature branch
    Then I see feature branch commits
    And I see button to create a new merge request
    Then I click the "Compare" tab
    And I see button to create a new merge request

  Scenario: I browse commits list for feature branch with an open merge request
    Given project have an open merge request
    And I visit commits list page for feature branch
    Then I see feature branch commits
    And I should not see button to create a new merge request
    And I should see button to the merge request
    Then I click the "Compare" tab
    And I should not see button to create a new merge request
    And I should see button to the merge request
Dmitriy Zaporozhets committed
30 31 32 33 34 35 36 37

  Scenario: I browse atom feed of commits list for master branch
    Given I click atom feed link
    Then I see commits atom feed

  Scenario: I browse commit from list
    Given I click on commit link
    Then I see commit info
38
    And I see side-by-side diff button
39

40 41
  Scenario: I browse commit with ci from list
    Given commit has ci status
42 43
    And repository contains ".gitlab-ci.yml" file
    When I click on commit link
44
    Then I see commit ci info
45 46
    And I click status link
    Then I see builds list
47

48
  Scenario: I browse commit with side-by-side diff view
49
    Given I click on commit link
50 51
    And I click side-by-side diff button
    Then I see inline diff button
Dmitriy Zaporozhets committed
52

53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
  @javascript
  Scenario: I compare branches without a merge request
    Given I visit compare refs page
    And I fill compare fields with branches
    Then I see compared branches
    And I see button to create a new merge request

  @javascript
  Scenario: I compare branches with an open merge request
    Given project have an open merge request
    And I visit compare refs page
    And I fill compare fields with branches
    Then I see compared branches
    And I should not see button to create a new merge request
    And I should see button to the merge request

69
  @javascript
Dmitriy Zaporozhets committed
70 71 72
  Scenario: I compare refs
    Given I visit compare refs page
    And I fill compare fields with refs
73
    Then I see compared refs
74 75
    And I unfold diff
    Then I should see additional file lines
76 77 78 79

  Scenario: I browse commits for a specific path
    Given I visit my project's commits page for a specific path
    Then I see breadcrumb links
randx committed
80

81 82 83 84
  # TODO: Implement feature in graphs
  #Scenario: I browse commits stats
    #Given I visit my project's commits stats page
    #Then I see commits stats
85 86 87 88

  Scenario: I browse big commit
    Given I visit big commit page
    Then I see big commit warning
89
    And I see "Reload with full diff" link
90

91 92 93
  Scenario: I browse a commit with an image
    Given I visit a commit with an image that changed
    Then The diff links to both the previous and current image
94 95 96 97 98

  @javascript
  Scenario: I filter commits by message
    When I search "submodules" commits
    Then I should see only "submodules" commits