test: pin wiki preview truncation

This commit is contained in:
Shakker
2026-05-12 16:37:09 +01:00
parent 34e69362d9
commit aef22e659b

View File

@@ -346,8 +346,8 @@ describe("dreaming view", () => {
await Promise.resolve();
await Promise.resolve();
expect(container.querySelector(".dreams-diary__preview-hint")?.textContent).toContain(
"6001 total lines",
expect(compactText(container.querySelector(".dreams-diary__preview-hint"))).toBe(
"Showing the first chunk of this page (6001 total lines).",
);
const closePreviewButton = container.querySelector<HTMLButtonElement>(