fix sva_sva sort specs to handle time zones

This commit is contained in:
Christian Lautier 2023-10-10 08:26:39 -10:00
parent 3efe62c1b3
commit 6dcf24a684

View file

@ -33,8 +33,8 @@ describe "procedure sort", js: true, retry: 3 do
scenario "should be able to sort with header with sva date" do
procedure.update!(sva_svr: SVASVRConfiguration.new(decision: :sva).attributes)
followed_dossier_2.update!(sva_svr_decision_on: Date.tomorrow)
followed_dossier.update!(sva_svr_decision_on: Date.today)
followed_dossier_2.update!(sva_svr_decision_on: Time.zone.tomorrow)
followed_dossier.update!(sva_svr_decision_on: Time.zone.today)
visit instructeur_procedure_path(procedure, statut: "suivis")
# sorted by notifications (updated_at desc) by default, filtered by followed