Skip to content
Prev Previous commit
Next Next commit
wip: update test case
  • Loading branch information
sagardspeed2 committed Mar 22, 2025
commit bbe89ebbb35b0995812d0cf4fd1d4419ad76fd47
21 changes: 7 additions & 14 deletions packages/runtime/src/widgets/Form/__tests__/MultiSelect.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ describe("MultiSelect Widget", () => {
});
});

test("multiselect with search action", async () => {
test.only("multiselect with search action", async () => {
render(
<EnsembleScreen
screen={{
Expand Down Expand Up @@ -794,22 +794,15 @@ describe("MultiSelect Widget", () => {

userEvent.click(screen.getByText("Show Dialog"));

await waitFor(() => {
expect(screen.getByText("This is modal")).toBeInTheDocument();
const element = screen.getByText("Bella Davis", {
selector: ".ant-select-selection-item-content",
});

expect(element).toBeInTheDocument();

await waitFor(() => {
expect(
screen.getByText("Bella Davis", {
selector: ".ant-select-selection-item-content",
}),
).toBeVisible();
expect(
screen.getByText("Sophia Lee", {
selector: ".ant-select-selection-item-content",
}),
).toBeVisible();
expect(element).toBeInTheDocument();
});
}, 20000);
}, 10000);
});
/* eslint-enable react/no-children-prop */