From 6f7350969744c0a679df355824207fbce46461e5 Mon Sep 17 00:00:00 2001 From: suyash-naithani Date: Tue, 13 Feb 2024 16:48:08 +0530 Subject: [PATCH] Fix config file --- ui/jest.config.js | 1 + ui/{tests/playwright/setup.ts => jest.setup.ts} | 0 ui/tests/playwright/BrokerPropertyPage.test.tsx | 2 +- ui/tests/playwright/BrokersPage.test.tsx | 2 +- ui/tests/playwright/ClusterOverview.test.tsx | 2 +- ui/tests/playwright/ConsumerGroupsPage.test.tsx | 2 +- ui/tests/playwright/ConsumerPage.test.tsx | 2 +- ui/tests/playwright/CreateTopicPage.test.tsx | 2 +- ui/tests/playwright/HomePage.test.tsx | 2 +- ui/tests/playwright/MessagesPage.test.tsx | 2 +- ui/tests/playwright/PartitionsPage.test.tsx | 2 +- ui/tests/playwright/TopicConfigurationPage.test.tsx | 2 +- ui/tests/playwright/TopicConsumers.test.tsx | 2 +- ui/tests/playwright/TopicsPage.test.tsx | 2 +- 14 files changed, 13 insertions(+), 12 deletions(-) rename ui/{tests/playwright/setup.ts => jest.setup.ts} (100%) diff --git a/ui/jest.config.js b/ui/jest.config.js index d286efb6d..9c9149cfc 100644 --- a/ui/jest.config.js +++ b/ui/jest.config.js @@ -3,4 +3,5 @@ module.exports = { transform: { '^.+\\.tsx?$': 'ts-jest', }, + setupFilesAfterEnv: ['./jest.setup.ts'] }; \ No newline at end of file diff --git a/ui/tests/playwright/setup.ts b/ui/jest.setup.ts similarity index 100% rename from ui/tests/playwright/setup.ts rename to ui/jest.setup.ts diff --git a/ui/tests/playwright/BrokerPropertyPage.test.tsx b/ui/tests/playwright/BrokerPropertyPage.test.tsx index 48a9c341f..82eb40b03 100644 --- a/ui/tests/playwright/BrokerPropertyPage.test.tsx +++ b/ui/tests/playwright/BrokerPropertyPage.test.tsx @@ -1,4 +1,4 @@ -import { page } from "./setup"; +import { page } from "../../jest.setup"; describe("Brokers property page", () => { test("Brokers property page should display table", async () => { await page.goto( diff --git a/ui/tests/playwright/BrokersPage.test.tsx b/ui/tests/playwright/BrokersPage.test.tsx index bf406042a..5c2476f6a 100644 --- a/ui/tests/playwright/BrokersPage.test.tsx +++ b/ui/tests/playwright/BrokersPage.test.tsx @@ -1,4 +1,4 @@ -import { page } from "./setup"; +import { page } from "../../jest.setup"; describe("Brokers page", () => { test("Brokers page should display table", async () => { await page.goto( diff --git a/ui/tests/playwright/ClusterOverview.test.tsx b/ui/tests/playwright/ClusterOverview.test.tsx index f7c4b2702..0e2a338be 100644 --- a/ui/tests/playwright/ClusterOverview.test.tsx +++ b/ui/tests/playwright/ClusterOverview.test.tsx @@ -1,4 +1,4 @@ -import { page } from "./setup"; +import { page } from "../../jest.setup"; describe("Cluster Overview page", () => { test("Cluster overview page should display correctly", async () => { await page.goto( diff --git a/ui/tests/playwright/ConsumerGroupsPage.test.tsx b/ui/tests/playwright/ConsumerGroupsPage.test.tsx index f78153199..4680b6232 100644 --- a/ui/tests/playwright/ConsumerGroupsPage.test.tsx +++ b/ui/tests/playwright/ConsumerGroupsPage.test.tsx @@ -1,4 +1,4 @@ -import { page } from "./setup"; +import { page } from "../../jest.setup"; describe("Consumer groups page", () => { test("Consumer groups page should display table", async () => { await page.goto( diff --git a/ui/tests/playwright/ConsumerPage.test.tsx b/ui/tests/playwright/ConsumerPage.test.tsx index 76b9f07ab..3e115371a 100644 --- a/ui/tests/playwright/ConsumerPage.test.tsx +++ b/ui/tests/playwright/ConsumerPage.test.tsx @@ -1,4 +1,4 @@ -import { page } from "./setup"; +import { page } from "../../jest.setup"; describe("Consumer page", () => { test("Consumer should display table", async () => { await page.goto( diff --git a/ui/tests/playwright/CreateTopicPage.test.tsx b/ui/tests/playwright/CreateTopicPage.test.tsx index e7f2da5e8..71788e09c 100644 --- a/ui/tests/playwright/CreateTopicPage.test.tsx +++ b/ui/tests/playwright/CreateTopicPage.test.tsx @@ -1,4 +1,4 @@ -import { page } from "./setup"; +import { page } from "../../jest.setup"; describe("Create Topic", () => { test("Create Topic form should appear", async () => { await page.goto( diff --git a/ui/tests/playwright/HomePage.test.tsx b/ui/tests/playwright/HomePage.test.tsx index db4998266..b88a96c5f 100644 --- a/ui/tests/playwright/HomePage.test.tsx +++ b/ui/tests/playwright/HomePage.test.tsx @@ -1,4 +1,4 @@ -import { page } from "./setup"; +import { page } from "../../jest.setup"; describe("Home page", () => { test("Column headings are present", async () => { const columnHeadings = await page.$$eval( diff --git a/ui/tests/playwright/MessagesPage.test.tsx b/ui/tests/playwright/MessagesPage.test.tsx index 8b1b890fb..a2694fc54 100644 --- a/ui/tests/playwright/MessagesPage.test.tsx +++ b/ui/tests/playwright/MessagesPage.test.tsx @@ -1,4 +1,4 @@ -import { page } from "./setup"; +import { page } from "../../jest.setup"; describe("Messages page", () => { test("Messages page should display table", async () => { await page.goto( diff --git a/ui/tests/playwright/PartitionsPage.test.tsx b/ui/tests/playwright/PartitionsPage.test.tsx index 7f01f24fc..8e2e1a607 100644 --- a/ui/tests/playwright/PartitionsPage.test.tsx +++ b/ui/tests/playwright/PartitionsPage.test.tsx @@ -1,4 +1,4 @@ -import { page } from "./setup"; +import { page } from "../../jest.setup"; describe("Partitions page", () => { test("Partitions page should display table", async () => { await page.goto( diff --git a/ui/tests/playwright/TopicConfigurationPage.test.tsx b/ui/tests/playwright/TopicConfigurationPage.test.tsx index 015ac00a1..5f707bfcf 100644 --- a/ui/tests/playwright/TopicConfigurationPage.test.tsx +++ b/ui/tests/playwright/TopicConfigurationPage.test.tsx @@ -1,4 +1,4 @@ -import { page } from "./setup"; +import { page } from "../../jest.setup"; describe("Topic Configuration", () => { test("Topic Configuration form should appear", async () => { await page.goto( diff --git a/ui/tests/playwright/TopicConsumers.test.tsx b/ui/tests/playwright/TopicConsumers.test.tsx index 6d2b50fb1..6844cd612 100644 --- a/ui/tests/playwright/TopicConsumers.test.tsx +++ b/ui/tests/playwright/TopicConsumers.test.tsx @@ -1,4 +1,4 @@ -import { page } from "./setup"; +import { page } from "../../jest.setup"; describe("Topic Consumers", () => { test("Topic Consumers page should display table", async () => { await page.goto( diff --git a/ui/tests/playwright/TopicsPage.test.tsx b/ui/tests/playwright/TopicsPage.test.tsx index ffdb510c8..5c5254c66 100644 --- a/ui/tests/playwright/TopicsPage.test.tsx +++ b/ui/tests/playwright/TopicsPage.test.tsx @@ -1,4 +1,4 @@ -import { page } from "./setup"; +import { page } from "../../jest.setup"; describe("Topics page", () => { test("Topics page should display table", async () => { await page.goto(