Render project description in Source view

This avoids diplaying escaped characters like & in a description
This commit is contained in:
Sebastian Martinez
2024-07-05 11:43:27 +02:00
parent 7347d031e7
commit 507580b6ee
2 changed files with 13 additions and 2 deletions
@@ -95,5 +95,5 @@
</div>
</div>
<div class="description" use:twemoji>
{render(project.description)}
{@html render(project.description)}
</div>
+12 -1
View File
@@ -12,7 +12,7 @@ import {
sourceBrowsingUrl,
test,
} from "@tests/support/fixtures.js";
import { changeBranch } from "@tests/support/project";
import { changeBranch, createProject } from "@tests/support/project";
import { expectUrlPersistsReload } from "@tests/support/router";
test("navigate to project", async ({ page }) => {
@@ -58,6 +58,17 @@ test("navigate to project", async ({ page }) => {
await expect(page.getByText("Git test repository")).toBeVisible();
});
test("project description", async ({ page, peer }) => {
const { rid } = await createProject(peer, {
name: "heartwood",
description: "Radicle Heartwood Protocol & Stack",
});
await page.goto(peer.ridUrl(rid));
await expect(
page.getByText("Radicle Heartwood Protocol & Stack"),
).toBeVisible();
});
test("show source tree at specific revision", async ({ page }) => {
await page.goto(sourceBrowsingUrl);
await page