tests: fix tests that use Chat Input (#5461)

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-12-26 18:46:20 -03:00 committed by GitHub
commit 5fd601bb77
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 7 deletions

View file

@ -13,16 +13,16 @@ test(
});
await page.getByTestId("disclosure-inputs").click();
await page.waitForSelector('[data-testid="inputsChat Input"]', {
await page.waitForSelector('[data-testid="inputsText Input"]', {
timeout: 3000,
state: "visible",
});
await page
.getByTestId("inputsChat Input")
.getByTestId("inputsText Input")
.hover()
.then(async () => {
await page.getByTestId("add-component-button-chat-input").click();
await page.getByTestId("button_run_chat input").click();
await page.getByTestId("add-component-button-text-input").click();
await page.getByTestId("button_run_text input").click();
});
await page.waitForSelector("text=built successfully", { timeout: 30000 });
@ -58,7 +58,7 @@ test(
await expect(runningComponentsText).toBeVisible();
const builtSuccessfullyText = page
.getByText("Chat Input built successfully", { exact: true })
.getByText("Text Input built successfully", { exact: true })
.last();
await expect(builtSuccessfullyText).toBeVisible();
},

View file

@ -73,8 +73,8 @@ test(
timeout: 5000,
state: "visible",
});
await page.getByTestId("fit_view").click();
// This causes the Chat Input to be hidden
// await page.getByTestId("fit_view").click();
const elementsChatInput = await page
.locator('[data-testid="handle-chatinput-noshownode-message-source"]')