dossiers: display the estimate of the entire processing time
Displaying separate estimations for en_construction and en_instruction doesn't really make sense for the users: they want to know how long it is going to take overall, not the petty details of our workflow.
This commit is contained in:
parent
10fee7a12b
commit
d855468cb6
6 changed files with 37 additions and 91 deletions
|
@ -1,4 +1,6 @@
|
|||
describe 'users/dossiers/show/_status_overview.html.haml', type: :view do
|
||||
before { allow(dossier.procedure).to receive(:usual_traitement_time).and_return(1.day) }
|
||||
|
||||
subject! { render 'users/dossiers/show/status_overview.html.haml', dossier: dossier }
|
||||
|
||||
matcher :have_timeline_item do |selector|
|
||||
|
@ -46,6 +48,7 @@ describe 'users/dossiers/show/_status_overview.html.haml', type: :view do
|
|||
end
|
||||
|
||||
it { is_expected.to have_selector('.status-explanation .en-construction') }
|
||||
it { is_expected.to have_text('Habituellement, les dossiers de cette démarche sont traités dans un délai de 1 jour') }
|
||||
end
|
||||
|
||||
context 'when en instruction' do
|
||||
|
@ -59,6 +62,7 @@ describe 'users/dossiers/show/_status_overview.html.haml', type: :view do
|
|||
end
|
||||
|
||||
it { is_expected.to have_selector('.status-explanation .en-instruction') }
|
||||
it { is_expected.to have_text('Habituellement, les dossiers de cette démarche sont traités dans un délai de 1 jour') }
|
||||
end
|
||||
|
||||
context 'when accepté' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue