Show the mean instruction time in the Résumé tab
This commit is contained in:
parent
faff741bf2
commit
d55c9dff4d
5 changed files with 34 additions and 4 deletions
|
@ -19,6 +19,22 @@ describe 'Dossier details:' do
|
|||
expect(page).to have_text(dossier.commentaires.last.body)
|
||||
end
|
||||
|
||||
describe "the user can see the mean time they are expected to wait" do
|
||||
context "the dossier is in instruction" do
|
||||
let(:dossier) { create(:dossier, :en_instruction, :for_individual, :with_commentaires, user: user, procedure: simple_procedure) }
|
||||
|
||||
before do
|
||||
other_dossier = create(:dossier, :accepte, :for_individual, procedure: simple_procedure, en_instruction_at: 2.months.ago, processed_at: Time.now)
|
||||
end
|
||||
|
||||
it "show the proper wait time" do
|
||||
visit_dossier dossier
|
||||
|
||||
expect(page).to have_text("Le temps moyen d’instruction pour cette démarche est de 2 mois.")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
scenario 'the user can see and edit dossier before instruction' do
|
||||
visit_dossier dossier
|
||||
click_on 'Demande'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue