feat: preview working and template delete is in, too

This commit is contained in:
2026-04-26 19:53:29 +02:00
parent 09a1dcede3
commit 92e5c2ccfd
15 changed files with 401 additions and 42 deletions

View File

@@ -259,7 +259,7 @@ defmodule BDS.GenerationTest do
Posts.create_post(%{
project_id: project.id,
title: "Rendered Post",
content: "Rendered body",
content: "**Rendered** body",
language: "en",
template_slug: published_post_template.slug
})
@@ -280,7 +280,8 @@ defmodule BDS.GenerationTest do
post_html = File.read!(Path.join([temp_dir, "html", post_path]))
assert post_html =~ "post-template"
assert post_html =~ "Rendered body"
assert post_html =~ ~s(<strong>Rendered</strong> body)
refute post_html =~ "**Rendered** body"
assert "pagefind/index.json" in relative_paths
assert "pagefind/pagefind-ui.js" in relative_paths