Skip to content
Snippets Groups Projects
Verified Commit f327bf01 authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett
Browse files

find and match first dropdown before clicking

parent 185fd98f
No related branches found
No related tags found
No related merge requests found
Loading
@@ -20,7 +20,6 @@ feature 'Create New Merge Request', feature: true, js: true do
Loading
@@ -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"
Loading
@@ -35,8 +34,7 @@ feature 'Create New Merge Request', feature: true, js: true do
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment