From 871918738fdaedf3edf5acf342ddaf3030d948a8 Mon Sep 17 00:00:00 2001 From: Richard Kuo Date: Fri, 22 Nov 2024 00:24:48 -0800 Subject: [PATCH] remove unnecessary backported tests --- .../admin_performance_query_history.spec.ts | 22 ------------------- web/tests/e2e/admin_performance_usage.spec.ts | 20 ----------------- 2 files changed, 42 deletions(-) delete mode 100644 web/tests/e2e/admin_performance_query_history.spec.ts delete mode 100644 web/tests/e2e/admin_performance_usage.spec.ts diff --git a/web/tests/e2e/admin_performance_query_history.spec.ts b/web/tests/e2e/admin_performance_query_history.spec.ts deleted file mode 100644 index d15dba7c635..00000000000 --- a/web/tests/e2e/admin_performance_query_history.spec.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { test, expect } from "@chromatic-com/playwright"; - -test.describe("Admin Performance Query History", () => { - // Ignores the diff for elements targeted by the specified list of selectors - // exclude button since they change based on the date - test.use({ ignoreSelectors: ["button"] }); - - test( - "Admin - Performance - Query History", - { - tag: "@admin", - }, - async ({ page }, testInfo) => { - // Test simple loading - await page.goto("http://localhost:3000/admin/performance/query-history"); - await expect(page.locator("h1.text-3xl")).toHaveText("Query History"); - await expect(page.locator("p.text-sm").nth(0)).toHaveText( - "Feedback Type" - ); - } - ); -}); diff --git a/web/tests/e2e/admin_performance_usage.spec.ts b/web/tests/e2e/admin_performance_usage.spec.ts deleted file mode 100644 index 0a5fff426d3..00000000000 --- a/web/tests/e2e/admin_performance_usage.spec.ts +++ /dev/null @@ -1,20 +0,0 @@ -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"); - } - ); -});