mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-29 17:20:44 +02:00
* Move unfenced check to check_for_indexing. implement a double check pattern for all indexing error checks * improved commenting * exclusions
21 lines
748 B
TypeScript
21 lines
748 B
TypeScript
import { test, expect } from "@chromatic-com/playwright";
|
|
|
|
test.describe("Admin Performance Usage", () => {
|
|
// Ignores the diff for elements targeted by the specified list of selectors
|
|
// exclude button and svg since they change based on the date
|
|
test.use({ ignoreSelectors: ["button", "svg"] });
|
|
|
|
test(
|
|
"Admin - Performance - Usage Statistics",
|
|
{
|
|
tag: "@admin",
|
|
},
|
|
async ({ page }, testInfo) => {
|
|
await page.goto("http://localhost:3000/admin/performance/usage");
|
|
await expect(page.locator("h1.text-3xl")).toHaveText("Usage Statistics");
|
|
await expect(page.locator("h1.text-lg").nth(0)).toHaveText("Usage");
|
|
await expect(page.locator("h1.text-lg").nth(1)).toHaveText("Feedback");
|
|
}
|
|
);
|
|
});
|