Skip to content

Commit

Permalink
fix: fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
a0v0 committed Aug 11, 2024
1 parent 1b189ab commit b7032c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/navbar/settings-model.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function Settings() {
return (
<Tabs aria-label="Options" isVertical={!isMobile}>
<Tab
key="appearence"
key="appearance"
className="w-full"
title={
<div className="flex items-center space-x-2">
Expand Down
6 changes: 2 additions & 4 deletions tests/miscellaneous.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ test.describe("theme toggle", () => {

await page.getByRole("button", { name: "avatar" }).click();
await page.getByLabel("Settings").click();
await page.getByRole("tab", { name: "Appearence" }).click();
await page.getByRole("tab", { name: "Appearance" }).click();

// default theme mode is light so first switch to dark then back to light
await page.getByRole("button", { name: "Dark" }).click();
Expand All @@ -22,11 +22,9 @@ test.describe("theme toggle", () => {

await page.getByRole("button", { name: "avatar" }).click();
await page.getByLabel("Settings").click();
await page.getByRole("tab", { name: "Appearence" }).click();
await page.getByRole("tab", { name: "Appearance" }).click();

// default theme mode is light so first switch to dark then back to light
await page.getByRole("button", { name: "Dark" }).click();
await page.getByRole("button", { name: "Light" }).click();

await expect(page.locator("html")).toHaveClass("enableSystem dark");
await page.reload();
Expand Down

0 comments on commit b7032c9

Please sign in to comment.