File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
packages/runtime/src/widgets/Form/__tests__ Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -794,14 +794,17 @@ describe("MultiSelect Widget", () => {
794
794
795
795
userEvent . click ( screen . getByText ( "Show Dialog" ) ) ;
796
796
797
- const element = screen . getByText ( "Bella Davis" , {
798
- selector : ".ant-select-selection-item-content" ,
799
- } ) ;
800
-
801
- expect ( element ) . toBeInTheDocument ( ) ;
802
-
803
797
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 ( ) ;
805
808
} ) ;
806
809
} , 10000 ) ;
807
810
} ) ;
You can’t perform that action at this time.
0 commit comments