mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-30 16:50:47 +08:00
28 lines
776 B
TypeScript
28 lines
776 B
TypeScript
import { expect, test } from "@tests/support/fixtures.js";
|
|
|
|
test("rad web command reacts to port change", async ({ page, peerManager }) => {
|
|
const peer = await peerManager.startPeer({
|
|
name: "port-test",
|
|
});
|
|
await peer.startHttpd(8090);
|
|
|
|
await page.goto("/");
|
|
await page.getByRole("button", { name: "Authenticate" }).click();
|
|
|
|
await expect(
|
|
page.getByText(
|
|
"rad web --frontend http://localhost:3001 --backend http://127.0.0.1:8081",
|
|
),
|
|
).toBeVisible();
|
|
await page.locator('input[name="port"]').fill("8090");
|
|
await page.locator('input[name="port"]').press("Enter");
|
|
|
|
await expect(
|
|
page.getByText(
|
|
"rad web --frontend http://localhost:3001 --backend http://127.0.0.1:8090",
|
|
),
|
|
).toBeVisible();
|
|
|
|
await peer.stopHttpd();
|
|
});
|