2015-12-09 04:50:28 -05:00
|
|
|
@project_commits
|
2014-10-02 12:42:54 -04:00
|
|
|
Feature: Project Commits
|
2012-09-10 07:27:11 -04:00
|
|
|
Background:
|
|
|
|
Given I sign in as a user
|
2012-09-26 13:58:50 -04:00
|
|
|
And I own a project
|
|
|
|
And I visit my project's commits page
|
2012-06-15 00:15:28 -04:00
|
|
|
|
|
|
|
Scenario: I browse commits list for master branch
|
|
|
|
Then I see project commits
|
2016-02-01 18:43:51 -05:00
|
|
|
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
|
2012-06-15 00:15:28 -04:00
|
|
|
|
|
|
|
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
|
2013-11-27 03:00:14 -05:00
|
|
|
And I see side-by-side diff button
|
2013-10-09 16:22:37 -04:00
|
|
|
|
2015-09-24 05:40:48 -04:00
|
|
|
Scenario: I browse commit with ci from list
|
|
|
|
Given commit has ci status
|
2015-12-14 08:25:18 -05:00
|
|
|
And repository contains ".gitlab-ci.yml" file
|
|
|
|
When I click on commit link
|
2015-09-24 05:40:48 -04:00
|
|
|
Then I see commit ci info
|
2015-10-06 07:12:21 -04:00
|
|
|
And I click status link
|
|
|
|
Then I see builds list
|
2015-09-24 05:40:48 -04:00
|
|
|
|
2013-11-27 03:00:14 -05:00
|
|
|
Scenario: I browse commit with side-by-side diff view
|
2013-10-09 16:22:37 -04:00
|
|
|
Given I click on commit link
|
2013-11-27 03:00:14 -05:00
|
|
|
And I click side-by-side diff button
|
|
|
|
Then I see inline diff button
|
2012-06-15 00:15:28 -04:00
|
|
|
|
2016-02-01 18:43:51 -05:00
|
|
|
@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
|
|
|
|
|
2015-03-24 03:07:17 -04:00
|
|
|
@javascript
|
2012-06-15 00:15:28 -04:00
|
|
|
Scenario: I compare refs
|
|
|
|
Given I visit compare refs page
|
|
|
|
And I fill compare fields with refs
|
2012-09-26 13:58:50 -04:00
|
|
|
Then I see compared refs
|
2015-03-24 03:07:17 -04:00
|
|
|
And I unfold diff
|
|
|
|
Then I should see additional file lines
|
2012-11-01 17:57:44 -04:00
|
|
|
|
|
|
|
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
|
2012-11-10 16:33:10 -05:00
|
|
|
|
2014-09-26 11:12:25 -04:00
|
|
|
# TODO: Implement feature in graphs
|
|
|
|
#Scenario: I browse commits stats
|
|
|
|
#Given I visit my project's commits stats page
|
|
|
|
#Then I see commits stats
|
2013-09-04 03:33:09 -04:00
|
|
|
|
|
|
|
Scenario: I browse big commit
|
|
|
|
Given I visit big commit page
|
|
|
|
Then I see big commit warning
|
2015-08-25 02:35:26 -04:00
|
|
|
And I see "Reload with full diff" link
|
2013-09-04 03:33:09 -04:00
|
|
|
|
2013-09-10 21:36:04 -04:00
|
|
|
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
|
2016-01-06 11:12:25 -05:00
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: I filter commits by message
|
|
|
|
When I search "submodules" commits
|
|
|
|
Then I should see only "submodules" commits
|