mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
23 lines
665 B
TypeScript
23 lines
665 B
TypeScript
import { BASE_URL } from "../../Config";
|
|
import { Page, expect, test } from "@playwright/test";
|
|
import URL from "Common/Types/API/URL";
|
|
|
|
test.describe("check public dashboard", () => {
|
|
test("check if public dashboard is available", async ({
|
|
page,
|
|
}: {
|
|
page: Page;
|
|
}) => {
|
|
page.setDefaultNavigationTimeout(120000); // 2 minutes
|
|
const response = await page.goto(
|
|
`${URL.fromString(BASE_URL.toString())
|
|
.addRoute("/public-dashboard")
|
|
.toString()}`,
|
|
);
|
|
expect(response?.ok()).toBeTruthy();
|
|
|
|
const content: string = await page.content();
|
|
expect(content).toContain("/public-dashboard/dist/Index.js");
|
|
});
|
|
});
|