fix: hide empty show metadata

This commit is contained in:
bisco
2026-06-25 17:50:53 +02:00
parent f49026b317
commit 9c5a51745f
5 changed files with 17 additions and 4 deletions
+1
View File
@@ -22,6 +22,7 @@ test("renders the complete seeded single page", async ({ page }) => {
await expect(page.locator(".feature-card")).toHaveCount(3);
await expect(page.locator(".show-card")).toHaveCount(2);
await expect(page.locator(".gallery-item")).toHaveCount(4);
await expect(page.locator(".show-meta", { hasText: /^0$/ })).toHaveCount(0);
const positions = await page.evaluate((ids) => ids.map((id) => {
const element = document.getElementById(id);