Commit 1d2b2bd9 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'fix-create_new_mr_spec-dropdown-transient-failure' into 'master'

find and match first dropdown before clicking

See merge request !11060
parents cac04fbd f327bf01
...@@ -20,7 +20,6 @@ feature 'Create New Merge Request', feature: true, js: true do ...@@ -20,7 +20,6 @@ feature 'Create New Merge Request', feature: true, js: true do
expect(page).to have_content('Target branch') expect(page).to have_content('Target branch')
first('.js-source-branch').click first('.js-source-branch').click
first('.dropdown-source-branch .dropdown-content')
find('.dropdown-source-branch .dropdown-content a', match: :first).click find('.dropdown-source-branch .dropdown-content a', match: :first).click
expect(page).to have_content "b83d6e3" expect(page).to have_content "b83d6e3"
...@@ -35,8 +34,7 @@ feature 'Create New Merge Request', feature: true, js: true do ...@@ -35,8 +34,7 @@ feature 'Create New Merge Request', feature: true, js: true do
expect(page).to have_content('Target branch') expect(page).to have_content('Target branch')
first('.js-target-branch').click first('.js-target-branch').click
first('.dropdown-target-branch .dropdown-content') find('.dropdown-target-branch .dropdown-content a', text: 'v1.1.0', match: :first).click
first('.dropdown-target-branch .dropdown-content a', text: 'v1.1.0').click
expect(page).to have_content "b83d6e3" expect(page).to have_content "b83d6e3"
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