File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/incubator/Dialog/__tests__ Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -89,14 +89,14 @@ describe('Incubator.Dialog sanity checks', () => {
89
89
const onDismiss = jest . fn ( ) ;
90
90
const component = < TestCase2 onDismiss = { onDismiss } /> ;
91
91
const { dialogDriver, renderTree} = getDriver ( component ) ;
92
- expect ( dialogDriver . getModal ( ) . isVisible ( ) ) . toBeFalsy ( ) ;
92
+ expect ( dialogDriver . exists ( ) ) . toBeFalsy ( ) ;
93
93
const openButtonDriver = ButtonDriver ( { renderTree, testID : 'openButton' } ) ;
94
94
openButtonDriver . press ( ) ;
95
- expect ( dialogDriver . getModal ( ) . isVisible ( ) ) . toBeTruthy ( ) ;
95
+ expect ( dialogDriver . exists ( ) ) . toBeTruthy ( ) ;
96
96
expect ( onDismiss ) . toHaveBeenCalledTimes ( 0 ) ;
97
97
const closeButtonDriver = ButtonDriver ( { renderTree, testID : 'closeButton' } ) ;
98
98
closeButtonDriver . press ( ) ;
99
- expect ( dialogDriver . getModal ( ) . isVisible ( ) ) . toBeFalsy ( ) ;
99
+ expect ( dialogDriver . exists ( ) ) . toBeFalsy ( ) ;
100
100
expect ( onDismiss ) . toHaveBeenCalledTimes ( 1 ) ;
101
101
} ) ;
102
102
You can’t perform that action at this time.
0 commit comments