@@ -40,11 +40,11 @@ test("streams, filters, correlates, and redacts the sample locally", async ({
|
||||
).toBeVisible();
|
||||
await page.getByLabel("Literal search").fill("timeout");
|
||||
await expect(page.getByText(/1 of 4 retained records match/u)).toBeVisible();
|
||||
await page.getByRole("tab", { name: "Correlation" }).click();
|
||||
await page.getByRole("button", { name: "Correlation" }).click();
|
||||
await expect(
|
||||
page.getByRole("heading", { name: "Hourly timeline" }),
|
||||
).toBeVisible();
|
||||
await page.getByRole("tab", { name: "Redaction" }).click();
|
||||
await page.getByRole("button", { name: "Redaction" }).click();
|
||||
await expect(page.getByLabel("Redacted preview")).not.toContainText(
|
||||
"ada@example.test",
|
||||
);
|
||||
@@ -77,7 +77,7 @@ test("serves release identity and hardened headers", async ({ request }) => {
|
||||
const manifest = await request.get("/deep/nested/log/toolbox-app.json");
|
||||
await expect(manifest.json()).resolves.toMatchObject({
|
||||
id: "de.add-ideas.log-tools",
|
||||
version: "0.1.0",
|
||||
version: "0.2.0",
|
||||
entry: "./",
|
||||
privacy: { processing: "local", telemetry: false },
|
||||
});
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
import { expect, test } from "@playwright/test";
|
||||
|
||||
test("keeps the primary workspace inside a narrow viewport", async ({
|
||||
page,
|
||||
}) => {
|
||||
await page.goto("/deep/nested/log/");
|
||||
await expect(page.locator("main").first()).toBeVisible();
|
||||
await expect(
|
||||
page.locator("main .loading, main .workbench-loading"),
|
||||
).toHaveCount(0);
|
||||
|
||||
const widths = await page.evaluate(() => ({
|
||||
content: document.documentElement.scrollWidth,
|
||||
viewport: document.documentElement.clientWidth,
|
||||
}));
|
||||
expect(widths.viewport).toBeLessThanOrEqual(430);
|
||||
expect(widths.content).toBeLessThanOrEqual(widths.viewport + 1);
|
||||
});
|
||||
Reference in New Issue
Block a user