mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-24 22:30:35 +08:00
24 lines
686 B
TypeScript
24 lines
686 B
TypeScript
import { test, expect } from "@tests/support/fixtures.js";
|
|
|
|
test("node page", async ({ page }) => {
|
|
await page.addInitScript(() => {
|
|
window.initializeTestStubs = () => {
|
|
window.e2eTestStubs.FakeTimers.install({
|
|
now: new Date("November 24 2022 12:00:00").valueOf(),
|
|
shouldClearNativeTimers: true,
|
|
shouldAdvanceTime: false,
|
|
});
|
|
};
|
|
});
|
|
|
|
await page.goto("/nodes/radicle.local", { waitUntil: "networkidle" });
|
|
await expect(page).toHaveScreenshot();
|
|
});
|
|
|
|
test("node not found", async ({ page }) => {
|
|
await page.goto("/nodes/this.node.does.not.exist.xyz", {
|
|
waitUntil: "networkidle",
|
|
});
|
|
await expect(page).toHaveScreenshot();
|
|
});
|