@@ -346,6 +346,7 @@ def __init__(self, *, zaken_root: str, catalogi_root: str, user, eherkenning_use
346
346
startdatum = "2021-07-26" ,
347
347
einddatum = "2022-01-16" ,
348
348
status = f"{ zaken_root } statussen/98659876-bbb3-476a-ad13-n3nvcght758js" ,
349
+ resultaat = f"{ zaken_root } resultaten/3da81560-c7fc-476a-ad13-beu760sle929" ,
349
350
vertrouwelijkheidaanduiding = VertrouwelijkheidsAanduidingen .openbaar ,
350
351
)
351
352
self .status3 = generate_oas_component_cached (
@@ -531,6 +532,7 @@ def test_list_cases(self, m):
531
532
"identification" : mock .zaak2 ["identificatie" ],
532
533
"description" : mock .zaaktype ["omschrijving" ],
533
534
"current_status" : mock .status_type_initial ["omschrijving" ],
535
+ "result" : "" ,
534
536
"zaaktype_config" : mock .zaaktype_config1 ,
535
537
"statustype_config" : mock .zt_statustype_config1 ,
536
538
"case_type" : "Zaak" ,
@@ -545,6 +547,7 @@ def test_list_cases(self, m):
545
547
"identification" : mock .zaak1 ["identificatie" ],
546
548
"description" : mock .zaaktype ["omschrijving" ],
547
549
"current_status" : mock .status_type_initial ["omschrijving" ],
550
+ "result" : "" ,
548
551
"zaaktype_config" : mock .zaaktype_config1 ,
549
552
"statustype_config" : mock .zt_statustype_config1 ,
550
553
"case_type" : "Zaak" ,
@@ -561,6 +564,7 @@ def test_list_cases(self, m):
561
564
"identification" : mock .zaak3 ["identificatie" ],
562
565
"description" : mock .zaaktype ["omschrijving" ],
563
566
"current_status" : mock .status_type_finish ["statustekst" ],
567
+ "result" : mock .resultaat_type ["omschrijving" ],
564
568
"zaaktype_config" : mock .zaaktype_config1 ,
565
569
"statustype_config" : None ,
566
570
"case_type" : "Zaak" ,
@@ -574,8 +578,8 @@ def test_list_cases(self, m):
574
578
"end_date" : datetime .date (2022 , 1 , 13 ),
575
579
"identification" : mock .zaak_result ["identificatie" ],
576
580
"description" : mock .zaaktype ["omschrijving" ],
577
- # use result here
578
- "current_status " : mock .resultaat_type ["omschrijving" ],
581
+ "current_status" : mock . status_type_initial [ "omschrijving" ],
582
+ "result " : mock .resultaat_type ["omschrijving" ],
579
583
"zaaktype_config" : mock .zaaktype_config1 ,
580
584
"statustype_config" : mock .zt_statustype_config1 ,
581
585
"case_type" : "Zaak" ,
@@ -584,6 +588,8 @@ def test_list_cases(self, m):
584
588
]
585
589
)
586
590
591
+ cases = response .context ["cases" ]
592
+
587
593
self .assertListEqual (response .context ["cases" ], expected_cases )
588
594
# don't show internal cases
589
595
for mock in self .mocks :
@@ -613,6 +619,15 @@ def test_list_cases(self, m):
613
619
# case filter form is disabled by default
614
620
self .assertFalse (response .context .get ("filter_form_enabled" ))
615
621
622
+ # check status/result label
623
+ doc = PQ (response .content )
624
+
625
+ status_labels = doc .find (".list-item__caption:Contains('Status')" )
626
+ result_labels = doc .find (".list-item__caption:Contains('Resultaat')" )
627
+
628
+ self .assertEqual (len (status_labels ), 4 )
629
+ self .assertEqual (len (result_labels ), 4 )
630
+
616
631
def test_filter_widget_is_controlled_by_zaken_filter_enabled (self , m ):
617
632
self .client .force_login (user = self .user )
618
633
@@ -717,6 +732,7 @@ def test_list_cases_for_eherkenning_user(self, m):
717
732
"current_status" : mock .status_type_initial [
718
733
"omschrijving"
719
734
],
735
+ "result" : "" ,
720
736
"zaaktype_config" : mock .zaaktype_config1 ,
721
737
"statustype_config" : mock .zt_statustype_config1 ,
722
738
"case_type" : "Zaak" ,
@@ -735,6 +751,7 @@ def test_list_cases_for_eherkenning_user(self, m):
735
751
"current_status" : mock .status_type_initial [
736
752
"omschrijving"
737
753
],
754
+ "result" : "" ,
738
755
"zaaktype_config" : mock .zaaktype_config1 ,
739
756
"statustype_config" : mock .zt_statustype_config1 ,
740
757
"case_type" : "Zaak" ,
@@ -793,7 +810,6 @@ def test_list_cases_for_kvk_user_with_vestigingsnummer(self, m):
793
810
m .reset_mock ()
794
811
795
812
response = self .client .get (self .inner_url , HTTP_HX_REQUEST = "true" )
796
-
797
813
expected_cases = [
798
814
{
799
815
"uuid" : mock .zaak_eherkenning1 ["uuid" ],
@@ -804,6 +820,7 @@ def test_list_cases_for_kvk_user_with_vestigingsnummer(self, m):
804
820
"identification" : mock .zaak_eherkenning1 ["identificatie" ],
805
821
"description" : mock .zaaktype ["omschrijving" ],
806
822
"current_status" : mock .status_type_initial ["omschrijving" ],
823
+ "result" : "" ,
807
824
"zaaktype_config" : mock .zaaktype_config1 ,
808
825
"statustype_config" : mock .zt_statustype_config1 ,
809
826
"case_type" : "Zaak" ,
@@ -869,6 +886,7 @@ def test_list_cases_for_rsin_user_with_vestigingsnummer(self, m):
869
886
"identification" : mock .zaak_eherkenning1 ["identificatie" ],
870
887
"description" : mock .zaaktype ["omschrijving" ],
871
888
"current_status" : mock .status_type_initial ["omschrijving" ],
889
+ "result" : "" ,
872
890
"zaaktype_config" : mock .zaaktype_config1 ,
873
891
"statustype_config" : mock .zt_statustype_config1 ,
874
892
"case_type" : "Zaak" ,
@@ -1045,6 +1063,7 @@ def test_list_cases_paginated(self, m):
1045
1063
"identification" : mock .zaak2 ["identificatie" ],
1046
1064
"description" : mock .zaaktype ["omschrijving" ],
1047
1065
"current_status" : mock .status_type_initial ["omschrijving" ],
1066
+ "result" : "" ,
1048
1067
"zaaktype_config" : mock .zaaktype_config1 ,
1049
1068
"statustype_config" : mock .zt_statustype_config1 ,
1050
1069
"case_type" : "Zaak" ,
@@ -1057,6 +1076,7 @@ def test_list_cases_paginated(self, m):
1057
1076
"identification" : mock .zaak1 ["identificatie" ],
1058
1077
"description" : mock .zaaktype ["omschrijving" ],
1059
1078
"current_status" : mock .status_type_initial ["omschrijving" ],
1079
+ "result" : "" ,
1060
1080
"zaaktype_config" : mock .zaaktype_config1 ,
1061
1081
"statustype_config" : mock .zt_statustype_config1 ,
1062
1082
"case_type" : "Zaak" ,
@@ -1069,6 +1089,7 @@ def test_list_cases_paginated(self, m):
1069
1089
"identification" : mock .zaak3 ["identificatie" ],
1070
1090
"description" : mock .zaaktype ["omschrijving" ],
1071
1091
"current_status" : mock .status_type_finish ["statustekst" ],
1092
+ "result" : mock .resultaat_type ["omschrijving" ],
1072
1093
"zaaktype_config" : mock .zaaktype_config1 ,
1073
1094
"statustype_config" : None ,
1074
1095
"case_type" : "Zaak" ,
@@ -1082,8 +1103,8 @@ def test_list_cases_paginated(self, m):
1082
1103
"end_date" : datetime .date (2022 , 1 , 13 ),
1083
1104
"identification" : mock .zaak_result ["identificatie" ],
1084
1105
"description" : mock .zaaktype ["omschrijving" ],
1085
- # use result here
1086
- "current_status " : mock .resultaat_type ["omschrijving" ],
1106
+ "current_status" : mock . status_type_initial [ "omschrijving" ],
1107
+ "result " : mock .resultaat_type ["omschrijving" ],
1087
1108
"zaaktype_config" : mock .zaaktype_config1 ,
1088
1109
"statustype_config" : mock .zt_statustype_config1 ,
1089
1110
"case_type" : "Zaak" ,
0 commit comments