🐛 Fix local library being collapsed by default (#5775)

* 🐛 Fix local library being collapsed by default

* ♻️ Move layers tab spec code to its own file
This commit is contained in:
Belén Albeza 2025-02-06 09:28:51 +01:00 committed by GitHub
parent c774592b9e
commit 2cbc09a0e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 90 additions and 75 deletions

View file

@ -0,0 +1,21 @@
import { test, expect } from "@playwright/test";
import { WorkspacePage } from "../pages/WorkspacePage";
test.beforeEach(async ({ page }) => {
await WorkspacePage.init(page);
});
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();
expect(heightExpanded > heightCollapsed);
});