From 56207f4ffcc7132b0c46f5f2e6450c08c25278c9 Mon Sep 17 00:00:00 2001 From: KumJungMin Date: Mon, 27 May 2024 22:19:59 +0900 Subject: [PATCH] test: check application aria is same with current date --- .../components/date-picker/__tests__/date-picker.test.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/components/date-picker/__tests__/date-picker.test.tsx b/packages/components/date-picker/__tests__/date-picker.test.tsx index 87aed04e01..56ab4b459f 100644 --- a/packages/components/date-picker/__tests__/date-picker.test.tsx +++ b/packages/components/date-picker/__tests__/date-picker.test.tsx @@ -475,7 +475,9 @@ describe("DatePicker", () => { expect(dialog).toBeVisible(); - expect(getTextValue(combobox)).toBe("5/1/2024"); + const content = getByRole("application"); + + expect(content).toHaveAttribute("aria-label", "May 2024"); }); }); });