test(documents): check the archive grid under the flowing default

The vault runs its months side by side by default now, so a month is
marked above its first document and no longer has a heading row. The
grid check reads the arrangement and the month marker instead of an h2.
This commit is contained in:
Marc-André Bombeck committed 2026-10-09 13:04:27 +02:00
1 parent 4c06ecafe3
commit cd78415084
1 file changed
+6 -2
+6 -2
View File
@@ -165,9 +165,13 @@ test.describe("document vault", () => {
const firstRow = page.locator('[data-slot="document-month-row"]').first();
await expect(firstRow).toBeVisible({ timeout: 15_000 });
// Month headings stay the grid's section labels.
// The months run side by side by default: a month is marked above
// its first document instead of taking a heading row of its own.
await expect(
page.locator('[data-slot="document-timeline"] h2').first(),
page.locator('[data-slot="document-timeline"]'),
).toHaveAttribute("data-arrangement", "flow");
await expect(
page.locator('[data-slot="document-flow-month"]').first(),
).toBeVisible();
// Tiles with the preview on top, and at most `columns` side by side: