Commit 68be6738 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'cherry-pick-a095d25c' into 'master'

Merge branch 'approvals-spec-fix-for-816' into '8-16-stable-ee'

See merge request !1238
parents 562c0f45 41022c18
...@@ -265,7 +265,7 @@ feature 'Merge request approvals', js: true, feature: true do ...@@ -265,7 +265,7 @@ feature 'Merge request approvals', js: true, feature: true do
merge_requests_ff_only_enabled: true ) merge_requests_ff_only_enabled: true )
end end
let(:merge_request) { create(:merge_request, source_project: project, source_branch: 'feature', target_branch: 'wip' ) } let(:merge_request) { create(:merge_request, source_project: project) }
before do before do
create :approver_group, group: group, target: merge_request create :approver_group, group: group, target: merge_request
...@@ -274,12 +274,12 @@ feature 'Merge request approvals', js: true, feature: true do ...@@ -274,12 +274,12 @@ feature 'Merge request approvals', js: true, feature: true do
it 'I am unable to rebase the merge request' do it 'I am unable to rebase the merge request' do
# before approval status is loaded # before approval status is loaded
expect(page).to have_button('Rebase onto wip', disabled: true) expect(page).to have_button("Rebase onto #{merge_request.target_branch}", disabled: true)
wait_for_ajax wait_for_ajax
# after approval status is loaded # after approval status is loaded
expect(page).to have_button('Rebase onto wip', disabled: true) expect(page).to have_button("Rebase onto #{merge_request.target_branch}", disabled: true)
end end
end end
end end
......
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