mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 02:00:31 +08:00
Render project description in Source view
This avoids diplaying escaped characters like & in a description
This commit is contained in:
@@ -95,5 +95,5 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="description" use:twemoji>
|
||||
{render(project.description)}
|
||||
{@html render(project.description)}
|
||||
</div>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user