Skip to content

Commit

Permalink
tests: fix tests that use Chat Input (#5461)
Browse files Browse the repository at this point in the history
  • Loading branch information
ogabrielluiz authored Dec 26, 2024
1 parent d31be29 commit 5fd601b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/frontend/tests/extended/features/notifications.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down Expand Up @@ -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();
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"]')
Expand Down

0 comments on commit 5fd601b

Please sign in to comment.