2013-04-25 10:15:33 -04:00
|
|
|
Feature: Project Forked Merge Requests
|
|
|
|
Background:
|
|
|
|
Given I sign in as a user
|
|
|
|
And I am a member of project "Shop"
|
|
|
|
And I have a project forked off of "Shop" called "Forked Shop"
|
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: I can visit the target projects commit for a forked merge request
|
|
|
|
Given I visit project "Forked Shop" merge requests page
|
|
|
|
And I click link "New Merge Request"
|
|
|
|
And I fill out a "Merge Request On Forked Project" merge request
|
|
|
|
And I follow the target commit link
|
|
|
|
Then I should see the commit under the forked from project
|
|
|
|
|
2013-06-03 16:20:50 -04:00
|
|
|
@javascript
|
2013-04-25 10:15:33 -04:00
|
|
|
Scenario: I submit new unassigned merge request to a forked project
|
|
|
|
Given I visit project "Forked Shop" merge requests page
|
|
|
|
And I click link "New Merge Request"
|
|
|
|
And I fill out a "Merge Request On Forked Project" merge request
|
|
|
|
And I submit the merge request
|
|
|
|
Then I should see merge request "Merge Request On Forked Project"
|
|
|
|
|
2013-06-03 16:20:50 -04:00
|
|
|
@javascript
|
2013-04-25 10:15:33 -04:00
|
|
|
Scenario: I should see a push widget for forked merge requests
|
|
|
|
Given project "Forked Shop" has push event
|
|
|
|
And I visit dashboard page
|
|
|
|
Then I should see last push widget
|
|
|
|
And I click "Create Merge Request on fork" link
|
|
|
|
Then I see prefilled new Merge Request page for the forked project
|
|
|
|
|
2013-06-03 16:20:50 -04:00
|
|
|
@javascript
|
2013-04-25 10:15:33 -04:00
|
|
|
Scenario: I can edit a forked merge request
|
|
|
|
Given I visit project "Forked Shop" merge requests page
|
|
|
|
And I click link "New Merge Request"
|
|
|
|
And I fill out a "Merge Request On Forked Project" merge request
|
|
|
|
And I submit the merge request
|
|
|
|
And I should see merge request "Merge Request On Forked Project"
|
|
|
|
And I click link edit "Merge Request On Forked Project"
|
2013-06-03 16:20:50 -04:00
|
|
|
Then I see the edit page prefilled for "Merge Request On Forked Project"
|
2013-04-25 10:15:33 -04:00
|
|
|
|
2013-06-08 11:51:18 -04:00
|
|
|
@javascript
|
|
|
|
Scenario: I cannot submit an invalid merge request
|
|
|
|
Given I visit project "Forked Shop" merge requests page
|
|
|
|
And I click link "New Merge Request"
|
|
|
|
And I fill out an invalid "Merge Request On Forked Project" merge request
|
|
|
|
And I submit the merge request
|
|
|
|
Then I should see validation errors
|