From 7a2bb002612d8680c3222de895b6e8ca6d25848f Mon Sep 17 00:00:00 2001 From: Manel BELHADJ Date: Thu, 19 Dec 2024 21:11:51 +0100 Subject: [PATCH] test: Remove redundant theme display test --- .../EditThemeSetting/EditThemeSetting.test.tsx | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/components/settings/EditThemeSetting/EditThemeSetting.test.tsx b/src/components/settings/EditThemeSetting/EditThemeSetting.test.tsx index ea33e84..8853a03 100644 --- a/src/components/settings/EditThemeSetting/EditThemeSetting.test.tsx +++ b/src/components/settings/EditThemeSetting/EditThemeSetting.test.tsx @@ -46,20 +46,4 @@ describe("EditThemeSetting", () => { expect(mockUpdateTheme).toHaveBeenCalledWith({ theme: "dark" }); expect(mockSetNextTheme).toHaveBeenCalledWith("dark"); }); - - it("displays the correct selected theme", () => { - render(); - const lightThemeButton = screen.getByRole("radio", { - name: THEMES.light.label, - }); - expect(lightThemeButton).toHaveAttribute("aria-checked", "true"); - const darkThemeButton = screen.getByRole("radio", { - name: THEMES.dark.label, - }); - expect(darkThemeButton).not.toHaveAttribute("aria-checked", "true"); - const systemThemeButton = screen.getByRole("radio", { - name: THEMES.system.label, - }); - expect(systemThemeButton).not.toHaveAttribute("aria-checked", "true"); - }); });