From 786986053b3d6465bb3aa38f7cf8ee7f3255c249 Mon Sep 17 00:00:00 2001 From: rgarcia Date: Tue, 20 Oct 2015 14:50:26 +0200 Subject: [PATCH] tests print button present --- spec/features/management/proposals_spec.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/spec/features/management/proposals_spec.rb b/spec/features/management/proposals_spec.rb index 8cf432bb2..46411c7af 100644 --- a/spec/features/management/proposals_spec.rb +++ b/spec/features/management/proposals_spec.rb @@ -109,12 +109,7 @@ feature 'Proposals' do click_link "Print proposals" expect(page).to have_css('.proposal', count: 5) - find("#print_link").click - - ### CHANGE ME - # should probably test something else here - # maybe that we are loading a print.css stylesheet? - ### + expect(page).to have_css("a[href='javascript:window.print();']", text: 'Print') end scenario "Filtering proposals to be printed", :js do