Skip to content

Commit 676fa34

Browse files
committed
fix unit tests with new labels
1 parent 1f188e0 commit 676fa34

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/components/react/TriggerDownloadCsv/TriggerDownloadCsv.test.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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: /kpis csv/i })).toBeTruthy();
62+
expect(screen.getByRole("button", { name: /csv/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: /group of kpis csv/i }),
68+
screen.getByRole("button", { name: /Download KPI results CSV/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: /all measures csv/i })).toBeTruthy();
197+
expect(screen.getByRole("button", { name: /Download measures implemented CSV/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: /lab measures csv/i })).toBeTruthy();
202+
expect(screen.getByRole("button", { name: /Lab Measures CSV/i })).toBeTruthy();
203203
});
204204

205205
it("calls downloadCsvBlob with /csv/projects for projects-all", async () => {

0 commit comments

Comments
 (0)