commits.feature 1.63 KB
Newer Older
1
Feature: Project Commits
2 3
  Background:
    Given I sign in as a user
4 5
    And I own a project
    And I visit my project's commits page
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
6 7 8 9 10 11 12 13 14 15 16

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

19 20 21 22
  Scenario: I browse commit with ci from list
    Given commit has ci status
    And I click on commit link
    Then I see commit ci info
23 24
    And I click status link
    Then I see builds list
25

26
  Scenario: I browse commit with side-by-side diff view
27
    Given I click on commit link
28 29
    And I click side-by-side diff button
    Then I see inline diff button
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
30

31
  @javascript
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
32 33 34
  Scenario: I compare refs
    Given I visit compare refs page
    And I fill compare fields with refs
35
    Then I see compared refs
36 37
    And I unfold diff
    Then I should see additional file lines
38 39 40 41

  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's avatar
randx committed
42

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
43 44 45 46
  # TODO: Implement feature in graphs
  #Scenario: I browse commits stats
    #Given I visit my project's commits stats page
    #Then I see commits stats
47 48 49 50

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

53 54 55
  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