Files
Rūdolfs Ošiņš 086afbb5dc Give each e2e test its own reliable peer
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.
2026-10-01 18:16:29 +02:00

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