From 329b288c018357a2a8a679731847430cc08a5f47 Mon Sep 17 00:00:00 2001 From: Amaia Castro Date: Tue, 10 Jan 2017 17:56:35 +0100 Subject: [PATCH] Try to fix poltergeist error in spec --- spec/features/legislation/draft_versions_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/features/legislation/draft_versions_spec.rb b/spec/features/legislation/draft_versions_spec.rb index a817a8b2c..bdf83e088 100644 --- a/spec/features/legislation/draft_versions_spec.rb +++ b/spec/features/legislation/draft_versions_spec.rb @@ -155,7 +155,7 @@ feature 'Legislation Draft Versions' do first(:css, ".annotator-hl").click expect(page).to have_content "my annotation" - all(".annotator-hl")[1].click + all(".annotator-hl")[1].trigger('click') expect(page).to have_content "my other annotation" end end