mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
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:
1 parent
4c06ecafe3
commit
cd78415084
1 file changed
+6
-2
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user