mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-03 20:09:33 +01:00
test(e2e): share initial Settings sidebar browser proof (#16083)
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
9076329149
commit
8541dfad29
1 file changed
+1
-7
@@ -60,7 +60,7 @@ test.describe("Contextual sidebar companion", () => {
|
||||
}, COLLAPSED_STORAGE_KEY);
|
||||
});
|
||||
|
||||
test("replaces global navigation with Settings navigation", async ({ page }) => {
|
||||
test("renders contextual labels at full width", async ({ page }) => {
|
||||
await page.goto(`/${prefix}/company/settings`);
|
||||
|
||||
const contextual = page.locator('[data-contextual-sidebar="settings"]');
|
||||
@@ -75,14 +75,8 @@ test.describe("Contextual sidebar companion", () => {
|
||||
|
||||
await expect(page.getByRole("link", { name: "Dashboard" })).toHaveCount(0);
|
||||
await expect(page.getByLabel(APP_SIDEBAR_EXPANDED_MARKER)).toHaveCount(0);
|
||||
});
|
||||
|
||||
test("renders contextual labels at full width", async ({ page }) => {
|
||||
await page.goto(`/${prefix}/company/settings`);
|
||||
|
||||
const contextual = page.locator('[data-contextual-sidebar="settings"]');
|
||||
const envLabel = contextual.getByText("Environments", { exact: true });
|
||||
await expect(envLabel).toBeVisible();
|
||||
const labelBox = await envLabel.boundingBox();
|
||||
expect(labelBox).not.toBeNull();
|
||||
expect(labelBox!.width).toBeGreaterThan(20);
|
||||
|
||||
Reference in new issue
Block a user