mirror of
https://github.com/penpot/penpot.git
synced 2025-05-09 22:26:37 +02:00
🐛 Fix layers tree not expanding towards the bottom edge
This commit is contained in:
parent
00f7ea2b56
commit
04f341ce1d
9 changed files with 57 additions and 25 deletions
23
frontend/playwright/ui/specs/sidebar.spec.js
Normal file
23
frontend/playwright/ui/specs/sidebar.spec.js
Normal file
|
@ -0,0 +1,23 @@
|
|||
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);
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue