@@ -59,13 +59,13 @@ describe("TriggerDownloadCsv", () => {
5959
6060 it ( "renders 'KPIs CSV' label for kpi-results-definition type" , ( ) => {
6161 render ( < TriggerDownloadCsv type = "kpi-results-definition" /> ) ;
62- expect ( screen . getByRole ( "button" , { name : / k p i s c s v / i } ) ) . toBeTruthy ( ) ;
62+ expect ( screen . getByRole ( "button" , { name : / c s v / i } ) ) . toBeTruthy ( ) ;
6363 } ) ;
6464
6565 it ( "renders 'Group of KPIs CSV' label for kpi-results-category type" , ( ) => {
6666 render ( < TriggerDownloadCsv type = "kpi-results-category" /> ) ;
6767 expect (
68- screen . getByRole ( "button" , { name : / g r o u p o f k p i s c s v / i } ) ,
68+ screen . getByRole ( "button" , { name : / D o w n l o a d K P I r e s u l t s C S V / i } ) ,
6969 ) . toBeTruthy ( ) ;
7070 } ) ;
7171
@@ -194,12 +194,12 @@ describe("TriggerDownloadCsv", () => {
194194
195195 it ( "renders 'All Measures CSV' label for projects-all type" , ( ) => {
196196 render ( < TriggerDownloadCsv type = "projects-all" /> ) ;
197- expect ( screen . getByRole ( "button" , { name : / a l l m e a s u r e s c s v / i } ) ) . toBeTruthy ( ) ;
197+ expect ( screen . getByRole ( "button" , { name : / D o w n l o a d m e a s u r e s i m p l e m e n t e d C S V / i } ) ) . toBeTruthy ( ) ;
198198 } ) ;
199199
200200 it ( "renders 'Lab Measures CSV' label for projects-lab type" , ( ) => {
201201 render ( < TriggerDownloadCsv type = "projects-lab" living_lab_id = { 2 } /> ) ;
202- expect ( screen . getByRole ( "button" , { name : / l a b m e a s u r e s c s v / i } ) ) . toBeTruthy ( ) ;
202+ expect ( screen . getByRole ( "button" , { name : / L a b M e a s u r e s C S V / i } ) ) . toBeTruthy ( ) ;
203203 } ) ;
204204
205205 it ( "calls downloadCsvBlob with /csv/projects for projects-all" , async ( ) => {
0 commit comments