Radish alpha
r
rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5
Radicle web interface
Radicle
Git
Expand internal file markdown test case
Merged did:key:z6MkkfM3...sVz5 opened 1 year ago

Additionally to navigate the file links we should guarantee that circling back to the source without a path shouldn’t break navigation.

check check-visual check-unit-test check-http-client-unit-test check-radicle-httpd check-e2e check-build check-http

👉 Preview 👉 Workflow runs 👉 Branch on GitHub

1 file changed +7 -0 7a5d4566 → 266afb17
modified tests/e2e/project.spec.ts
@@ -523,6 +523,13 @@ test("internal file markdown link", async ({ page }) => {
  await expect(page).toHaveURL(`${markdownUrl}/tree/main/cheatsheet.md`);
  await expect(page.getByText("cheatsheet.md").nth(2)).toBeVisible();

+
  await page.goto(markdownUrl);
+
  await page.getByRole("link", { name: "Link Files" }).click();
+
  await page.getByRole("button", { name: "Files", exact: true }).click();
+
  await page.getByRole("link", { name: "Link Files" }).click();
+
  await expect(page).toHaveURL(`${markdownUrl}/tree/link-files.md`);
+
  await expect(page.getByText("link-files.md").nth(2)).toBeVisible();
+

  await page.goto(`${markdownUrl}/tree/main/link-files.md`);
  await page.getByRole("link", { name: "black square" }).click();
  await expect(page).toHaveURL(