mirror of
https://seed.radicle.dev/rad:z4D5UCArafTzTQpDZNQRuqswh3ury.git
synced 2026-10-18 19:10:45 +08:00
The page always talked to the shared palm backend, so tests couldn't set up peers of their own. Peers now have no passphrase by default, so tests don't need an ssh-agent and test keys stay out of the developer's agent. Fixtures wait for replication instead of relying on gossip timing, and a request cancelled by a reload no longer counts as a page error.
10 lines
337 B
TypeScript
10 lines
337 B
TypeScript
import { expect, test } from "@tests/support/fixtures.js";
|
|
|
|
test("shows whether the node is running", async ({ page, peer }) => {
|
|
await page.goto("/");
|
|
await expect(page.getByRole("button", { name: "Online" })).toBeVisible();
|
|
|
|
await peer.stopNode();
|
|
await expect(page.getByRole("button", { name: "Offline" })).toBeVisible();
|
|
});
|