Align top panel headers with master sidebar
This commit is contained in:
@@ -90,6 +90,16 @@ test("uses one shared visual style for the top panel headers", async ({ page })
|
||||
expect(new Set(styles.map((style) => JSON.stringify(style))).size).toBe(1);
|
||||
});
|
||||
|
||||
test("keeps the top panel headers on one baseline", async ({ page }) => {
|
||||
await page.goto("/");
|
||||
const positions = await page.locator(".panel-header").evaluateAll((elements) => elements.map((element) => {
|
||||
const rect = element.getBoundingClientRect();
|
||||
return [rect.top, rect.height];
|
||||
}));
|
||||
expect(new Set(positions.map((position) => JSON.stringify(position))).size).toBe(1);
|
||||
expect(positions[0][0]).toBe(0);
|
||||
});
|
||||
|
||||
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) => {
|
||||
|
||||
Reference in New Issue
Block a user