Files
radicle-explorer/tests/visual/seed.spec.ts
T
Sebastian Martinez f4bf5b9c6a Sort projects in seed view by most recent activity
Uses the projects activity, fetched from `/projects/${id}/activity`
which is an array of commit timestamps.
So could suffer from some errors if commits with non current timestamps
are being used.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-07-31 13:05:56 +02:00

17 lines
500 B
TypeScript

import { test, expect } from "@tests/support/fixtures.js";
test("seed 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("/seeds/radicle.local", { waitUntil: "networkidle" });
await expect(page).toHaveScreenshot();
});