accessibilite(page#dossiers): utiliser les role=alert sur le status des dossiers

This commit is contained in:
Martin 2022-12-12 09:15:21 +01:00 committed by mfo
parent 0a10a08c21
commit 4e201a245b
4 changed files with 31 additions and 38 deletions

View file

@ -24,19 +24,6 @@ describe 'users/dossiers/show/_status_overview.html.haml', type: :view do
end
end
context 'when brouillon' do
let(:dossier) { create :dossier }
it 'renders the timeline (without the final states)' do
expect(rendered).to have_timeline_item('.brouillon').active
expect(rendered).to have_timeline_item('.en-construction').inactive
expect(rendered).to have_timeline_item('.en-instruction').inactive
expect(rendered).to have_timeline_item('.termine').inactive
end
it { is_expected.to have_selector('.status-explanation .brouillon') }
end
context 'when en construction' do
let(:dossier) { create :dossier, :en_construction }