Write proper FAQ page intro; drop dead faqs-embed from tests

This commit is contained in:
tleininger committed 2026-09-30 15:13:19 +02:00
1 parent e38ebf078d
commit cb345975cb
5 files changed
+47 -22

No files matched your search

+8 -6
View File
@@ -236,16 +236,18 @@ public sealed class PocketBaseFixture : IAsyncLifetime
});
await CreateRecordAsync(http, "pages", new
{
// Carries an embed so the ContentPage embed path is covered: /patrons
// renders its body plus the FAQ teaser.
title = "Förderverein", body = "# Förderverein", location = "header",
order = 3, slug = "patrons", embed = new[] { "faqs" }, @public = true,
order = 3, slug = "patrons", embed = Array.Empty<string>(), @public = true,
});
// Nav placeholder for the FAQ list (route /faqs is served by FaqList,
// which shadows this page). Slug matches production's "faqs" nav entry.
// Page record for the FAQ list. Route /faqs is served by FaqList, which reads
// this record for its heading and intro (title + body) and renders the topic
// cards itself. Slug matches production's "faqs" nav entry. The body carries
// no "# heading": the title already renders as the h1.
await CreateRecordAsync(http, "pages", new
{
title = "FAQ", body = "# Häufige Fragen", location = "header",
title = "FAQs",
body = "Wählen Sie ein Thema, um die passenden Fragen zu sehen.",
location = "header",
order = 4, slug = "faqs", embed = Array.Empty<string>(), @public = true,
});
await CreateRecordAsync(http, "pages", new