Fix for test with new form of MR.

This commit is contained in:
Marin Jankovski
2014-05-15 13:39:27 +02:00
parent 0ba4dc11f2
commit 5e89354fe6
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -142,4 +142,5 @@ Feature: Project Merge Requests
Scenario: I submit new unassigned merge request with template description
Given I click link "New Merge Request"
And I select "notes_refactoring" as source
Then I should see description field pre-filled
+6
View File
@@ -239,6 +239,12 @@ class ProjectMergeRequests < Spinach::FeatureSteps
end
end
step 'I select "notes_refactoring" as source' do
select "master", from: "merge_request_source_branch"
select "notes_refactoring", from: "merge_request_target_branch"
click_button "Compare branches"
end
step 'I should see description field pre-filled' do
find_field('merge_request_description').value.should == 'This merge request should contain the following.'
end