mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 22:30:41 +08:00
Updates also the seed fixture to fix some minor issues and add a relative image markdown example Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
32 lines
1.1 KiB
TypeScript
32 lines
1.1 KiB
TypeScript
import { test, expect } from "@tests/support/fixtures.js";
|
|
|
|
test("navigate to existing project", async ({ page }) => {
|
|
await page.goto("/");
|
|
const searchInput = page.getByPlaceholder("Search a name or address…");
|
|
await searchInput.click();
|
|
await searchInput.fill("rad:git:hnrkdi8be7n4hhqoz9rpzrgd68u9dr3zsxgmy");
|
|
await searchInput.press("Enter");
|
|
|
|
await expect(page).toHaveURL(
|
|
"/seeds/0.0.0.0/rad:git:hnrkdi8be7n4hhqoz9rpzrgd68u9dr3zsxgmy/tree",
|
|
);
|
|
await expect(searchInput).not.toHaveValue(
|
|
"rad:git:hnrkdi8be7n4hhqoz9rpzrgd68u9dr3zsxgmy",
|
|
);
|
|
});
|
|
|
|
test("navigate to a project that does not exist", async ({ page }) => {
|
|
await page.goto("/");
|
|
const searchInput = page.getByPlaceholder("Search a name or address…");
|
|
await searchInput.click();
|
|
await searchInput.fill("rad:git:hnrkn1ah5im83fwt4u3jfs5ndwpt9hrnm9wby");
|
|
await searchInput.press("Enter");
|
|
|
|
await page.waitForSelector(".search-bar.shaking");
|
|
|
|
await expect(page).toHaveURL("/");
|
|
await expect(searchInput).toHaveValue(
|
|
"rad:git:hnrkn1ah5im83fwt4u3jfs5ndwpt9hrnm9wby",
|
|
);
|
|
});
|