Files
oneuptime/E2E/Tests/PublicDashboard/StatusCheck.spec.ts
Nawaz Dhandala 26bcc69fa2 Enhance Traces Dashboard with latency percentiles and service health metrics
- Added global P50, P95, and P99 latency calculations to the TracesDashboard component.
- Introduced a new formatDuration function to format latency values for display.
- Updated service summaries to include per-service P50 and P95 latencies.
- Improved the layout of the dashboard to display overall requests, error rates, and latency metrics.
- Refactored service health indicators to visually represent error rates with color coding.
- Adjusted the display of recent errors and slow requests for better user experience.
- Updated E2E tests for admin and public dashboards to include response type checks.
2026-04-03 11:34:06 +01:00

23 lines
692 B
TypeScript

import { BASE_URL } from "../../Config";
import { Page, Response, 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: Response | null = 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");
});
});