mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 11:50:42 +08:00
When a saved node (e.g. localhost) is down, the app previously showed a dead-end "Node not found" page with no way to navigate away. Now the not-found page displays the seed selector inline with the error title, showing which node failed and letting users switch to a different one directly. The same treatment applies when navigating to a repo on an unreachable node.
10 lines
393 B
TypeScript
10 lines
393 B
TypeScript
import { test, expect } from "@tests/support/fixtures.js";
|
|
|
|
test("exceptions in production build", async ({ page }) => {
|
|
await page.goto("/nodes/127.0.0.1:8081");
|
|
// Wait for scripts to finish executing, there might be exceptions that
|
|
// happen after the page has been painted.
|
|
await page.waitForTimeout(2000);
|
|
await expect(page.getByText("Could not connect to")).toBeVisible();
|
|
});
|