test: increase timeout in Market Research tests (#5208)
✨ (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
This commit is contained in:
parent
abd3321677
commit
5cc331c4bc
1 changed files with 3 additions and 6 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue