mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
- 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.
23 lines
692 B
TypeScript
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");
|
|
});
|
|
});
|