Changes capybara selector to qa-selector

Otherwise capybara hits ambiguous match.
This commit is contained in:
Tanya Pazitny 2019-07-26 21:00:54 +00:00 committed by Mayra Cabrera
parent ef3e6785a2
commit ebd992fdaf

View file

@ -20,7 +20,7 @@ describe 'Contextual sidebar', :js do
expect(page).to have_selector('.is-showing-fly-out') expect(page).to have_selector('.is-showing-fly-out')
find('.qa-link-project').hover find('a[data-qa-selector="project_link"]').hover
expect(page).not_to have_selector('.is-showing-fly-out') expect(page).not_to have_selector('.is-showing-fly-out')
@ -30,7 +30,7 @@ describe 'Contextual sidebar', :js do
expect(page).to have_selector('.is-showing-fly-out') expect(page).to have_selector('.is-showing-fly-out')
find('.qa-link-project').hover find('a[data-qa-selector="project_link"]').hover
expect(page).to have_selector('.is-showing-fly-out') expect(page).to have_selector('.is-showing-fly-out')
end end