mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-02 10:10:28 +08:00
20 lines
650 B
TypeScript
20 lines
650 B
TypeScript
import { test, cobUrl, expect } from "@tests/support/fixtures.js";
|
|
|
|
test("navigate issue listing", async ({ page }) => {
|
|
await page.goto(cobUrl);
|
|
await page.locator('role=link[name="1 issue"]').click();
|
|
await expect(page).toHaveURL(`${cobUrl}/issues`);
|
|
|
|
await page.locator('role=link[name="2 closed"]').click();
|
|
await expect(page).toHaveURL(`${cobUrl}/issues?state=closed`);
|
|
});
|
|
|
|
test("navigate single issue", async ({ page }) => {
|
|
await page.goto(`${cobUrl}/issues`);
|
|
await page.locator("text=This title has markdown").click();
|
|
|
|
await expect(page).toHaveURL(
|
|
`${cobUrl}/issues/4fc727e722d3979fd2073d9b56b2751658a4ae79`,
|
|
);
|
|
});
|