Fix tests again

This commit is contained in:
Xavier J 2016-12-14 18:53:40 +01:00
parent bc4e3860be
commit c5917db28c
3 changed files with 4 additions and 4 deletions

View file

@ -67,7 +67,7 @@ feature 'usage of pref list dossier lateral panel', js: true do
scenario 'dossier is brought up to date', js: true do scenario 'dossier is brought up to date', js: true do
wait_for_ajax wait_for_ajax
expect(page).not_to have_selector("a.sortable[data-attr='entreprise.siren']") expect(page).not_to have_selector("a.sortable[data-attr='entreprise.siren']", visible: true)
end end
context 'when on click on close pref list button' do context 'when on click on close pref list button' do

View file

@ -23,7 +23,7 @@ feature 'on backoffice page' do
end end
context 'when he click on first dossier', js: true do context 'when he click on first dossier', js: true do
before do before do
page.find("#tr_dossier_#{dossier.id}").click page.find("#tr_dossier_#{dossier.id}", visible: true).click
end end
scenario 'it redirect to dossier page' do scenario 'it redirect to dossier page' do
@ -40,7 +40,7 @@ feature 'on backoffice page' do
create :follow, gestionnaire: gestionnaire, dossier: dossier_individual create :follow, gestionnaire: gestionnaire, dossier: dossier_individual
visit backoffice_dossiers_procedure_path(id: procedure_individual.id) visit backoffice_dossiers_procedure_path(id: procedure_individual.id)
page.find("#tr_dossier_#{dossier_individual.id}").click page.find("#tr_dossier_#{dossier_individual.id}", visible: true).click
end end
scenario 'it redirect to dossier page' do scenario 'it redirect to dossier page' do

View file

@ -30,7 +30,7 @@ describe 'admin/procedures/show.html.haml', type: :view do
end end
describe 'publish button is visible' do describe 'publish button is visible' do
it { expect(rendered).to have_css('a#publish') } it { expect(rendered).to have_css('a#publish-procedure') }
it { expect(rendered).not_to have_css('button#archive') } it { expect(rendered).not_to have_css('button#archive') }
it { expect(rendered).not_to have_css('a#reenable') } it { expect(rendered).not_to have_css('a#reenable') }
end end