mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-04 03:00:32 +08:00
Co-authored-by: Rūdolfs Ošiņš <rudolfs@osins.org> Signed-off-by: xphoniex <dj.2dixx@gmail.com> Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
22 lines
597 B
TypeScript
22 lines
597 B
TypeScript
import { test, expect, appConfigWithFixture } from "@tests/support/fixtures.js";
|
|
|
|
test.use({
|
|
customAppConfig: true,
|
|
});
|
|
|
|
test("landing 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.addInitScript(appConfigWithFixture);
|
|
await page.goto("/", { waitUntil: "networkidle" });
|
|
await expect(page).toHaveScreenshot();
|
|
});
|