Skip to content

Commit

Permalink
test: Remove redundant theme display test
Browse files Browse the repository at this point in the history
  • Loading branch information
belhajManel committed Dec 19, 2024
1 parent 2c9b2f9 commit 7a2bb00
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/components/settings/EditThemeSetting/EditThemeSetting.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,4 @@ describe("EditThemeSetting", () => {
expect(mockUpdateTheme).toHaveBeenCalledWith({ theme: "dark" });
expect(mockSetNextTheme).toHaveBeenCalledWith("dark");
});

it("displays the correct selected theme", () => {
render(<EditThemeSetting />);
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");
});
});

0 comments on commit 7a2bb00

Please sign in to comment.