Fix tests again
This commit is contained in:
parent
bc4e3860be
commit
c5917db28c
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
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
|
||||
|
||||
context 'when on click on close pref list button' do
|
||||
|
|
|
@ -23,7 +23,7 @@ feature 'on backoffice page' do
|
|||
end
|
||||
context 'when he click on first dossier', js: true do
|
||||
before do
|
||||
page.find("#tr_dossier_#{dossier.id}").click
|
||||
page.find("#tr_dossier_#{dossier.id}", visible: true).click
|
||||
end
|
||||
|
||||
scenario 'it redirect to dossier page' do
|
||||
|
@ -40,7 +40,7 @@ feature 'on backoffice page' do
|
|||
create :follow, gestionnaire: gestionnaire, dossier: dossier_individual
|
||||
|
||||
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
|
||||
|
||||
scenario 'it redirect to dossier page' do
|
||||
|
|
|
@ -30,7 +30,7 @@ describe 'admin/procedures/show.html.haml', type: :view do
|
|||
end
|
||||
|
||||
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('a#reenable') }
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue