-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ec0adf3
commit fb2a27d
Showing
3 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { expect, test } from "@playwright/test"; | ||
|
||
test("colorscheme interface", async ({ page }) => { | ||
await page.goto("localhost:3000"); | ||
|
||
await expect( | ||
page.locator("html[data-mantine-color-scheme=light]"), | ||
).toBeVisible(); | ||
|
||
await page.getByRole("button", { name: "Toggle color scheme" }).click(); | ||
|
||
await expect( | ||
page.locator("html[data-mantine-color-scheme=light]"), | ||
).not.toBeVisible(); | ||
await expect( | ||
page.locator("html[data-mantine-color-scheme=dark]"), | ||
).toBeVisible(); | ||
|
||
await expect(page).toHaveScreenshot(); | ||
}); |
Binary file added
BIN
+65.3 KB
e2e/colorScheme.spec.ts-snapshots/colorscheme-interface-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters