From 98e9600c26f0aab8ff64b82b965412d2fb938a62 Mon Sep 17 00:00:00 2001 From: "Richard Kuo (Danswer)" Date: Thu, 21 Nov 2024 19:56:13 -0800 Subject: [PATCH] exclusions --- .../admin_performance_query_history.spec.ts | 32 ++++++++++++------- web/tests/e2e/admin_performance_usage.spec.ts | 1 + 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/web/tests/e2e/admin_performance_query_history.spec.ts b/web/tests/e2e/admin_performance_query_history.spec.ts index 0362b1a57af..d15dba7c635 100644 --- a/web/tests/e2e/admin_performance_query_history.spec.ts +++ b/web/tests/e2e/admin_performance_query_history.spec.ts @@ -1,14 +1,22 @@ import { test, expect } from "@chromatic-com/playwright"; -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"); - } -); +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 index f1eff8f3080..0a5fff426d3 100644 --- a/web/tests/e2e/admin_performance_usage.spec.ts +++ b/web/tests/e2e/admin_performance_usage.spec.ts @@ -2,6 +2,7 @@ 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(