Skip to content

Commit 812fcd5

Browse files
committed
fix: update the multiselect test case
1 parent bbe89eb commit 812fcd5

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

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

+10-7
Original file line numberDiff line numberDiff line change
@@ -794,14 +794,17 @@ describe("MultiSelect Widget", () => {
794794

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

797-
const element = screen.getByText("Bella Davis", {
798-
selector: ".ant-select-selection-item-content",
799-
});
800-
801-
expect(element).toBeInTheDocument();
802-
803797
await waitFor(() => {
804-
expect(element).toBeInTheDocument();
798+
expect(
799+
screen.getByText("Bella Davis", {
800+
selector: ".ant-select-selection-item-content",
801+
}),
802+
).toBeInTheDocument();
803+
expect(
804+
screen.getByText("Sophia Lee", {
805+
selector: ".ant-select-selection-item-content",
806+
}),
807+
).toBeInTheDocument();
805808
});
806809
}, 10000);
807810
});

0 commit comments

Comments
 (0)