2014-09-02 18:07:02 +05:30
|
|
|
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"
|
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
@javascript
|
2014-09-02 18:07:02 +05:30
|
|
|
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"
|
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
# TODO: Improve it so it does not fail randomly
|
|
|
|
#
|
|
|
|
#@javascript
|
|
|
|
#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"
|
|
|
|
#Then I see the edit page prefilled for "Merge Request On Forked Project"
|
|
|
|
#And I update the merge request title
|
|
|
|
#And I save the merge request
|
|
|
|
#Then I should see the edited merge request
|
2014-09-02 18:07:02 +05:30
|
|
|
|
|
|
|
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
|
|
|
|
Then I should see validation errors
|
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: Merge request should target fork repository by default
|
|
|
|
Given I visit project "Forked Shop" merge requests page
|
|
|
|
And I click link "New Merge Request"
|
|
|
|
Then the target repository should be the original repository
|
2015-09-11 14:41:01 +05:30
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: I see the users in the target project for a new merge request
|
|
|
|
Given I logout
|
|
|
|
And I sign in as an admin
|
|
|
|
And I have a project forked off of "Shop" called "Forked Shop"
|
|
|
|
Then 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
|
|
|
|
When I click "Assign to" dropdown"
|
|
|
|
Then I should see the target project ID in the input selector
|
|
|
|
And I should see the users from the target project ID
|