debian-mirror-gitlab/features/project/fork.feature

28 lines
970 B
Gherkin
Raw Normal View History

2015-04-26 12:48:37 +05:30
Feature: Project Fork
2014-09-02 18:07:02 +05:30
Background:
Given I sign in as a user
And I am a member of project "Shop"
When I visit project "Shop" page
Scenario: User fork a project
Given I click link "Fork"
2015-04-26 12:48:37 +05:30
When I fork to my namespace
2014-09-02 18:07:02 +05:30
Then I should see the forked project page
Scenario: User already has forked the project
Given I already have a project named "Shop" in my namespace
And I click link "Fork"
2015-04-26 12:48:37 +05:30
When I fork to my namespace
2014-09-02 18:07:02 +05:30
Then I should see a "Name has already been taken" warning
Scenario: Merge request on canonical repo goes to fork merge request page
Given I click link "Fork"
And I fork to my namespace
Then I should see the forked project page
When I visit project "Shop" page
Then I should see "New merge request"
And I goto the Merge Requests page
Then I should see "New merge request"
And I click link "New merge request"
Then I should see the new merge request page for my namespace