mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-03 10:40:30 +08:00
Co-authored-by: dnlklmn <pelicansinberlin@gmail.com> Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
28 lines
773 B
TypeScript
28 lines
773 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: "Read only" }).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();
|
|
});
|