tests: fix tests that use Chat Input (#5461)
This commit is contained in:
parent
d31be29245
commit
5fd601bb77
2 changed files with 7 additions and 7 deletions
|
|
@ -13,16 +13,16 @@ test(
|
||||||
});
|
});
|
||||||
|
|
||||||
await page.getByTestId("disclosure-inputs").click();
|
await page.getByTestId("disclosure-inputs").click();
|
||||||
await page.waitForSelector('[data-testid="inputsChat Input"]', {
|
await page.waitForSelector('[data-testid="inputsText Input"]', {
|
||||||
timeout: 3000,
|
timeout: 3000,
|
||||||
state: "visible",
|
state: "visible",
|
||||||
});
|
});
|
||||||
await page
|
await page
|
||||||
.getByTestId("inputsChat Input")
|
.getByTestId("inputsText Input")
|
||||||
.hover()
|
.hover()
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
await page.getByTestId("add-component-button-chat-input").click();
|
await page.getByTestId("add-component-button-text-input").click();
|
||||||
await page.getByTestId("button_run_chat input").click();
|
await page.getByTestId("button_run_text input").click();
|
||||||
});
|
});
|
||||||
|
|
||||||
await page.waitForSelector("text=built successfully", { timeout: 30000 });
|
await page.waitForSelector("text=built successfully", { timeout: 30000 });
|
||||||
|
|
@ -58,7 +58,7 @@ test(
|
||||||
await expect(runningComponentsText).toBeVisible();
|
await expect(runningComponentsText).toBeVisible();
|
||||||
|
|
||||||
const builtSuccessfullyText = page
|
const builtSuccessfullyText = page
|
||||||
.getByText("Chat Input built successfully", { exact: true })
|
.getByText("Text Input built successfully", { exact: true })
|
||||||
.last();
|
.last();
|
||||||
await expect(builtSuccessfullyText).toBeVisible();
|
await expect(builtSuccessfullyText).toBeVisible();
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -73,8 +73,8 @@ test(
|
||||||
timeout: 5000,
|
timeout: 5000,
|
||||||
state: "visible",
|
state: "visible",
|
||||||
});
|
});
|
||||||
|
// This causes the Chat Input to be hidden
|
||||||
await page.getByTestId("fit_view").click();
|
// await page.getByTestId("fit_view").click();
|
||||||
|
|
||||||
const elementsChatInput = await page
|
const elementsChatInput = await page
|
||||||
.locator('[data-testid="handle-chatinput-noshownode-message-source"]')
|
.locator('[data-testid="handle-chatinput-noshownode-message-source"]')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue