refactor: Remove unnecessary wait for timeout in Travel Planning Agent test (#5143)

* refactor: Remove unnecessary wait for timeout in Travel Planning Agent test
This commit is contained in:
anovazzi1 2024-12-07 11:54:27 -03:00 committed by GitHub
commit 979aaa7cae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -58,8 +58,6 @@ test(
.first()
.fill(process.env.SEARCH_API_KEY ?? "");
await page.waitForTimeout(1000);
await page.getByTestId("button_run_chat output").click();
await page.getByTestId("button_run_chat output").last().click();
@ -83,8 +81,6 @@ test(
timeout: 30000,
});
await page.waitForTimeout(1000);
const output = await page.getByTestId("div-chat-message").allTextContents();
const outputText = output.join("\n");