From 5cc331c4bcfe3cff332311c4d9ad46266aa8fc95 Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Wed, 11 Dec 2024 15:01:57 -0300 Subject: [PATCH] test: increase timeout in Market Research tests (#5208) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✨ (Market Research.spec.ts): Remove unused functions and imports to clean up the code and improve maintainability 🔧 (Market Research.spec.ts): Increase timeout for page.waitForSelector to prevent timeout issues during test execution --- .../tests/core/integrations/Market Research.spec.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/frontend/tests/core/integrations/Market Research.spec.ts b/src/frontend/tests/core/integrations/Market Research.spec.ts index a275f0047..9ab31a3b1 100644 --- a/src/frontend/tests/core/integrations/Market Research.spec.ts +++ b/src/frontend/tests/core/integrations/Market Research.spec.ts @@ -1,14 +1,9 @@ import { expect, test } from "@playwright/test"; import * as dotenv from "dotenv"; import path from "path"; -import { addNewApiKeys } from "../../utils/add-new-api-keys"; -import { adjustScreenView } from "../../utils/adjust-screen-view"; import { awaitBootstrapTest } from "../../utils/await-bootstrap-test"; import { getAllResponseMessage } from "../../utils/get-all-response-message"; import { initialGPTsetup } from "../../utils/initialGPTsetup"; -import { removeOldApiKeys } from "../../utils/remove-old-api-keys"; -import { selectGptModel } from "../../utils/select-gpt-model"; -import { updateOldComponents } from "../../utils/update-old-components"; import { waitForOpenModalWithChatInput } from "../../utils/wait-for-open-modal"; test( @@ -46,7 +41,9 @@ test( .fill(process.env.TAVILY_API_KEY ?? ""); await page.getByTestId("button_run_chat output").click(); - await page.waitForSelector("text=built successfully", { timeout: 30000 }); + await page.waitForSelector("text=built successfully", { + timeout: 60000 * 3, + }); await page.getByText("built successfully").last().click({ timeout: 15000,