mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 00:40:30 -05:00
23 lines
750 B
JavaScript
23 lines
750 B
JavaScript
import { test, expect } from "@playwright/test";
|
|
import { WorkspacePage } from "../pages/WorkspacePage";
|
|
|
|
test.beforeEach(async ({ page }) => {
|
|
await WorkspacePage.init(page);
|
|
});
|
|
|
|
test.describe("Layers tab", () => {
|
|
test("BUG 7466 - Layers tab height extends to the bottom when 'Pages' is collapsed", async ({ page }) => {
|
|
const workspace = new WorkspacePage(page);
|
|
await workspace.setupEmptyFile();
|
|
|
|
await workspace.goToWorkspace();
|
|
|
|
const { height: heightExpanded } = await workspace.layers.boundingBox();
|
|
await workspace.togglePages();
|
|
const { height: heightCollapsed } = await workspace.layers.boundingBox();
|
|
|
|
console.log(heightExpanded, heightCollapsed);
|
|
|
|
expect(heightExpanded > heightCollapsed);
|
|
});
|
|
});
|