Fix failing tests that simulated a click against the DOM
The now-deprecated `.trigger('click')` API simulated a click against
the DOM rather a click on the UI, which made our tests fragile and
wouldn't simulate actual user interaction
This commit is contained in:
@@ -620,7 +620,7 @@ feature 'Commenting legislation questions' do
|
||||
|
||||
scenario 'View comments of annotations in an included range' do
|
||||
within("#annotation-link") do
|
||||
first(:css, "a").click
|
||||
find('.icon-expand').click
|
||||
end
|
||||
|
||||
expect(page).to have_css(".comment", count: 2)
|
||||
@@ -656,7 +656,7 @@ feature 'Commenting legislation questions' do
|
||||
end
|
||||
|
||||
within("#annotation-link") do
|
||||
first(:css, "a").click
|
||||
find('.icon-expand').click
|
||||
end
|
||||
|
||||
expect(page).to have_css(".comment", count: 3)
|
||||
@@ -667,7 +667,7 @@ feature 'Commenting legislation questions' do
|
||||
|
||||
scenario "Reply on a multiple annotation thread and display it in the single annotation thread" do
|
||||
within("#annotation-link") do
|
||||
first(:css, "a").click
|
||||
find('.icon-expand').click
|
||||
end
|
||||
|
||||
comment = annotation2.comments.first
|
||||
|
||||
Reference in New Issue
Block a user