From f66102abdcb8185824e5b6088899ea245218eae7 Mon Sep 17 00:00:00 2001 From: rgarcia Date: Wed, 7 Jun 2017 10:32:25 +0200 Subject: [PATCH] fixes specs --- spec/features/admin/legislation/processes_spec.rb | 4 ++-- spec/features/legislation/draft_versions_spec.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/features/admin/legislation/processes_spec.rb b/spec/features/admin/legislation/processes_spec.rb index 2218ae8d5..72937a787 100644 --- a/spec/features/admin/legislation/processes_spec.rb +++ b/spec/features/admin/legislation/processes_spec.rb @@ -61,7 +61,7 @@ feature 'Admin legislation processes' do end context 'Update' do - scenario 'Deactivate debate phase', js: true do + scenario 'Deactivate debate phase', :js do process = create(:legislation_process, title: 'An example legislation process') visit admin_root_path @@ -71,7 +71,7 @@ feature 'Admin legislation processes' do click_link "An example legislation process" - expect(page).to have_selector("h1", text: "An example legislation process") + expect(page).to have_selector("h2", text: "An example legislation process") expect(find("#debate_phase_active")).to be_checked uncheck "debate_phase_active" diff --git a/spec/features/legislation/draft_versions_spec.rb b/spec/features/legislation/draft_versions_spec.rb index 5b2192d46..053140287 100644 --- a/spec/features/legislation/draft_versions_spec.rb +++ b/spec/features/legislation/draft_versions_spec.rb @@ -154,11 +154,11 @@ feature 'Legislation Draft Versions' do page.find(:css, ".legislation-annotatable").double_click page.find(:css, ".annotator-adder button").click - page.click_button "Publish Comment" + page.click_button "Create Annotation" expect(page).to have_content "Comment can't be blank" fill_in 'legislation_annotation_text', with: 'this is my annotation' - page.click_button "Publish Comment" + page.click_button "Create Annotation" expect(page).to have_css ".annotator-hl" first(:css, ".annotator-hl").click