Verify and standardize panel control styling
This commit is contained in:
@@ -81,6 +81,15 @@ test("uses one shared height for the top panel headers", async ({ page }) => {
|
||||
expect(new Set(heights).size).toBe(1);
|
||||
});
|
||||
|
||||
test("uses one shared visual style for panel controls", async ({ page }) => {
|
||||
await page.goto("/");
|
||||
const styles = await page.locator("#sidebarCloseButton, #secondaryPanelToggle, #mainWorkspaceToggle").evaluateAll((elements) => elements.map((element) => {
|
||||
const style = getComputedStyle(element);
|
||||
return [style.width, style.height, style.borderColor, style.backgroundColor, style.borderRadius];
|
||||
}));
|
||||
expect(new Set(styles.map((style) => JSON.stringify(style))).size).toBe(1);
|
||||
});
|
||||
|
||||
test("theme toggle switches and persists dark mode", async ({ page }) => {
|
||||
await page.goto("/");
|
||||
await page.evaluate(() => localStorage.clear());
|
||||
|
||||
Reference in New Issue
Block a user