diff options
Diffstat (limited to 'spec/support/shared_examples/features/creatable_merge_request_shared_examples.rb')
-rw-r--r-- | spec/support/shared_examples/features/creatable_merge_request_shared_examples.rb | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/spec/support/shared_examples/features/creatable_merge_request_shared_examples.rb b/spec/support/shared_examples/features/creatable_merge_request_shared_examples.rb index 7f31ea8f9be..96e57980c68 100644 --- a/spec/support/shared_examples/features/creatable_merge_request_shared_examples.rb +++ b/spec/support/shared_examples/features/creatable_merge_request_shared_examples.rb @@ -2,6 +2,7 @@ RSpec.shared_examples 'a creatable merge request' do include WaitForRequests + include ListboxHelpers it 'creates new merge request', :js do find('.js-assignee-search').click @@ -64,14 +65,16 @@ RSpec.shared_examples 'a creatable merge request' do visit project_new_merge_request_path(source_project) first('.js-target-project').click - find('.dropdown-target-project li', text: target_project.full_path).click + select_listbox_item(target_project.full_path) wait_for_requests first('.js-target-branch').click - within('.js-target-branch-dropdown .dropdown-content') do - expect(page).to have_content('a-brand-new-branch-to-test') - end + find('.gl-listbox-search-input').set('a-brand-new-branch-to-test') + + wait_for_requests + + expect_listbox_item('a-brand-new-branch-to-test') end end |