spec(js): cleanup js tags

This commit is contained in:
Paul Chavard 2024-09-10 23:53:04 +02:00
parent 58037f21cd
commit 7b1c882498
No known key found for this signature in database
11 changed files with 47 additions and 53 deletions

View file

@ -184,7 +184,7 @@ describe 'user access to the list of their dossiers', js: true do
expect(page).not_to have_link('Supprimer le dossier', href: dossier_path(dossier_en_instruction))
end
context 'when user clicks on delete button', js: true do
context 'when user clicks on delete button' do
scenario 'the dossier is deleted' do
expect(page).to have_content(dossier_en_construction.procedure.libelle)
within(:css, ".card", match: :first) do
@ -207,7 +207,7 @@ describe 'user access to the list of their dossiers', js: true do
expect(page).to have_link(nil, href: clone_dossier_path(dossier_en_instruction))
end
context 'when user clicks on clone button', js: true do
context 'when user clicks on clone button' do
scenario 'the dossier is cloned' do
within(:css, ".card", match: :first) do
click_on 'Autres actions'
@ -227,7 +227,7 @@ describe 'user access to the list of their dossiers', js: true do
expect(page).to have_link('Télécharger mon dossier', href: dossier_path("#{dossier_traite_expire.id}.pdf"))
end
context 'when user clicks on restore button', js: true do
context 'when user clicks on restore button' do
scenario 'the dossier is restored' do
click_on "3 supprimés"
expect(page).to have_content(dossier_en_construction_supprime.procedure.libelle)
@ -238,7 +238,7 @@ describe 'user access to the list of their dossiers', js: true do
end
end
context 'when user clicks on restore and extend button', js: true do
context 'when user clicks on restore and extend button' do
scenario 'the dossier is restored and extended' do
click_on "3 supprimés"
expect(page).to have_content(dossier_en_construction_expire.procedure.libelle)