Commit 4d28a691 authored by Lin Jen-Shin's avatar Lin Jen-Shin
parent a0f1332b
...@@ -6,7 +6,7 @@ Feature: Project Ff Merge Requests ...@@ -6,7 +6,7 @@ Feature: Project Ff Merge Requests
And merge request "Bug NS-05" is mergeable And merge request "Bug NS-05" is mergeable
@javascript @javascript
Scenario: I do ff-only merge Scenario: I do ff-only merge for rebased branch
Given ff merge enabled Given ff merge enabled
And merge request "Bug NS-05" is rebased And merge request "Bug NS-05" is rebased
When I visit merge request page "Bug NS-05" When I visit merge request page "Bug NS-05"
...@@ -14,6 +14,15 @@ Feature: Project Ff Merge Requests ...@@ -14,6 +14,15 @@ Feature: Project Ff Merge Requests
When I accept this merge request When I accept this merge request
Then I should see merged request Then I should see merged request
@javascript
Scenario: I do ff-only merge for merged branch
Given ff merge enabled
And merge request "Bug NS-05" merged target
When I visit merge request page "Bug NS-05"
Then I should see ff-only merge button
When I accept this merge request
Then I should see merged request
@javascript @javascript
Scenario: I do rebase before ff-only merge Scenario: I do rebase before ff-only merge
Given ff merge enabled Given ff merge enabled
......
...@@ -58,6 +58,13 @@ class Spinach::Features::ProjectFfMergeRequests < Spinach::FeatureSteps ...@@ -58,6 +58,13 @@ class Spinach::Features::ProjectFfMergeRequests < Spinach::FeatureSteps
merge_request.save! merge_request.save!
end end
step 'merge request "Bug NS-05" merged target' do
merge_request.source_branch = 'merged-target'
merge_request.target_branch = 'improve/awesome'
merge_request.reload_code
merge_request.save!
end
step 'rebase before merge enabled' do step 'rebase before merge enabled' do
project = merge_request.target_project project = merge_request.target_project
project.merge_requests_rebase_enabled = true project.merge_requests_rebase_enabled = true
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment