File tree 1 file changed +7
-14
lines changed
packages/runtime/src/widgets/Form/__tests__
1 file changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -668,7 +668,7 @@ describe("MultiSelect Widget", () => {
668
668
} ) ;
669
669
} ) ;
670
670
671
- test ( "multiselect with search action" , async ( ) => {
671
+ test . only ( "multiselect with search action" , async ( ) => {
672
672
render (
673
673
< EnsembleScreen
674
674
screen = { {
@@ -794,22 +794,15 @@ describe("MultiSelect Widget", () => {
794
794
795
795
userEvent . click ( screen . getByText ( "Show Dialog" ) ) ;
796
796
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" ,
799
799
} ) ;
800
800
801
+ expect ( element ) . toBeInTheDocument ( ) ;
802
+
801
803
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 ( ) ;
812
805
} ) ;
813
- } , 20000 ) ;
806
+ } , 10000 ) ;
814
807
} ) ;
815
808
/* eslint-enable react/no-children-prop */
You can’t perform that action at this time.
0 commit comments