Verify and standardize panel control styling

This commit is contained in:
2026-08-05 16:43:09 +02:00
parent 52f51a4a6a
commit 4a985f101f
4 changed files with 12 additions and 1 deletions
+9
View File
@@ -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());