Skip to content

Commit bbe89eb

Browse files
committed
wip: update test case
1 parent da17474 commit bbe89eb

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

packages/runtime/src/widgets/Form/__tests__/MultiSelect.test.tsx

+7-14
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ describe("MultiSelect Widget", () => {
668668
});
669669
});
670670

671-
test("multiselect with search action", async () => {
671+
test.only("multiselect with search action", async () => {
672672
render(
673673
<EnsembleScreen
674674
screen={{
@@ -794,22 +794,15 @@ describe("MultiSelect Widget", () => {
794794

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

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

801+
expect(element).toBeInTheDocument();
802+
801803
await waitFor(() => {
802-
expect(
803-
screen.getByText("Bella Davis", {
804-
selector: ".ant-select-selection-item-content",
805-
}),
806-
).toBeVisible();
807-
expect(
808-
screen.getByText("Sophia Lee", {
809-
selector: ".ant-select-selection-item-content",
810-
}),
811-
).toBeVisible();
804+
expect(element).toBeInTheDocument();
812805
});
813-
}, 20000);
806+
}, 10000);
814807
});
815808
/* eslint-enable react/no-children-prop */

0 commit comments

Comments
 (0)