Files
radicle-explorer/tests/e2e/httpd.spec.ts
T
Rūdolfs Ošiņšanddnlklmn d914710396 Implement new design
Co-authored-by: dnlklmn <pelicansinberlin@gmail.com>
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-10-13 18:05:19 +02:00

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();
});