summaryrefslogtreecommitdiff
path: root/features/project/commits/commits.feature
blob: 5bb2d0e976bbdcb19510454773ada7c37847d890 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
@project_commits
Feature: Project Commits
  Background:
    Given I sign in as a user
    And I own a project
    And I visit my project's commits page

  Scenario: I browse commits list for master branch
    Then I see project commits

  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
    And I see side-by-side diff button

  Scenario: I browse commit with ci from list
    Given commit has ci status
    And repository contains ".gitlab-ci.yml" file
    When I click on commit link
    Then I see commit ci info
    And I click status link
    Then I see builds list

  Scenario: I browse commit with side-by-side diff view
    Given I click on commit link
    And I click side-by-side diff button
    Then I see inline diff button

  @javascript
  Scenario: I compare refs
    Given I visit compare refs page
    And I fill compare fields with refs
    Then I see compared refs
    And I unfold diff
    Then I should see additional file lines

  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

  # TODO: Implement feature in graphs
  #Scenario: I browse commits stats
    #Given I visit my project's commits stats page
    #Then I see commits stats

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

  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