mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
23 lines
719 B
TypeScript
23 lines
719 B
TypeScript
import { STATUS_PAGE_URL } from "../../Config";
|
|
import { Page, test } from "@playwright/test";
|
|
import URL from "Common/Types/API/URL";
|
|
|
|
test.describe("Basic Status Page", () => {
|
|
test("should be able to load status page properly", async ({
|
|
page,
|
|
}: {
|
|
page: Page;
|
|
}) => {
|
|
if (!STATUS_PAGE_URL) {
|
|
// pass this test if the user is not registered
|
|
return;
|
|
}
|
|
page.setDefaultNavigationTimeout(120000); // 2 minutes
|
|
// go to login page
|
|
await page.goto(URL.fromString(STATUS_PAGE_URL.toString()).toString());
|
|
|
|
// check if data-testid is present with status-page-overview
|
|
await page.waitForSelector('[data-testid="status-page-overview"]'); // page loaded properly.
|
|
});
|
|
});
|