Changes capybara selector to qa-selector
Otherwise capybara hits ambiguous match.
This commit is contained in:
parent
ef3e6785a2
commit
ebd992fdaf
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue