mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
test(desktop): remove stale collapsed home chrome check (#1871)
Signed-off-by: Wes <wesbillman@users.noreply.github.com> Co-authored-by: Pinky <44b8e82baa6e0e254e0208d68f335c283c94e7b78dd1fa10d5a49d3f13dd0435@sprout-oss.stage.blox.sqprod.co>
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
import { expect, test } from "@playwright/test";
|
||||
|
||||
import { waitForAnimations } from "../helpers/animations";
|
||||
import { installMockBridge } from "../helpers/bridge";
|
||||
|
||||
test.describe("home inbox header collapsed-sidebar chrome clearance", () => {
|
||||
test.use({ viewport: { width: 1280, height: 720 } });
|
||||
|
||||
test("inbox options clear the macOS traffic-light region when sidebar is collapsed", async ({
|
||||
page,
|
||||
}) => {
|
||||
await installMockBridge(page);
|
||||
await page.goto("/");
|
||||
await expect(page.getByTestId("home-inbox-list")).toBeVisible();
|
||||
|
||||
await page.locator('[data-sidebar="trigger"]').click();
|
||||
|
||||
const inboxOptions = page.getByTestId("inbox-options-trigger");
|
||||
await expect(inboxOptions).toBeVisible();
|
||||
await expect
|
||||
.poll(async () =>
|
||||
inboxOptions.evaluate((element) =>
|
||||
Math.round(element.getBoundingClientRect().left),
|
||||
),
|
||||
)
|
||||
.toBeGreaterThanOrEqual(168);
|
||||
|
||||
await waitForAnimations(page);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user