f99010fae1
CI / lint (push) Failing after 1s
CI / frontend (push) Failing after 1s
CI / scripts (push) Failing after 1s
CI / Go Test (ubuntu-latest) (push) Failing after 0s
CI / frontend-node-25 (push) Failing after 1s
CI / docs (push) Failing after 0s
CI / coverage (push) Failing after 0s
CI / e2e (push) Failing after 0s
Docker / build-and-push (push) Failing after 1s
CI / integration (push) Failing after 4m43s
CI / Go Test (windows-latest) (push) Has been cancelled
CI / Desktop Unit Tests (Windows) (push) Has been cancelled
Desktop Artifacts / Desktop Build (Linux (arm64)) (push) Has been cancelled
Desktop Artifacts / Desktop Build (Linux) (push) Has been cancelled
Desktop Artifacts / Desktop Build (Windows) (push) Has been cancelled
Desktop Artifacts (macOS) / Desktop Build (macOS (aarch64)) (push) Has been cancelled
Desktop Artifacts (macOS) / Desktop Build (macOS (x86_64)) (push) Has been cancelled
34 lines
986 B
TypeScript
34 lines
986 B
TypeScript
import { test, expect } from "@playwright/test";
|
|
import { SessionsPage } from "./pages/sessions-page";
|
|
|
|
test.describe("Transcript strip", () => {
|
|
let sp: SessionsPage;
|
|
|
|
test.beforeEach(async ({ page }) => {
|
|
sp = new SessionsPage(page);
|
|
await sp.goto();
|
|
await sp.selectFirstSession();
|
|
});
|
|
|
|
test("pills fill full height of transcript-strip container", async ({
|
|
page,
|
|
}) => {
|
|
const strip = page.locator(".transcript-strip");
|
|
await expect(strip).toBeVisible();
|
|
|
|
const activePill = strip.locator(".pill.active");
|
|
await expect(activePill).toBeVisible();
|
|
|
|
const stripBox = await strip.boundingBox();
|
|
const pillBox = await activePill.boundingBox();
|
|
|
|
expect(stripBox).toBeTruthy();
|
|
expect(pillBox).toBeTruthy();
|
|
|
|
// The pill should fill the container height (minus the 1px border
|
|
// on each side = 2px total).
|
|
const stripInner = stripBox!.height - 2;
|
|
expect(pillBox!.height).toBeGreaterThanOrEqual(stripInner);
|
|
});
|
|
});
|