summaryrefslogtreecommitdiff
path: root/spec/features/dashboard/merge_requests_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/dashboard/merge_requests_spec.rb')
-rw-r--r--spec/features/dashboard/merge_requests_spec.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/spec/features/dashboard/merge_requests_spec.rb b/spec/features/dashboard/merge_requests_spec.rb
index a146a6987bc..34bab9dffd0 100644
--- a/spec/features/dashboard/merge_requests_spec.rb
+++ b/spec/features/dashboard/merge_requests_spec.rb
@@ -36,11 +36,16 @@ RSpec.describe 'Dashboard Merge Requests', feature_category: :code_review_workfl
end
it 'shows projects only with merge requests feature enabled', :js do
- click_button 'Toggle project select'
+ click_button 'Select project to create merge request'
+ wait_for_requests
- page.within('.select2-results') do
+ page.within('[data-testid="new-resource-dropdown"]') do
expect(page).to have_content(project.full_name)
expect(page).not_to have_content(project_with_disabled_merge_requests.full_name)
+
+ find_button(project.full_name).click
+
+ expect(page).to have_link("New merge request in #{project.name}")
end
end
end