File tree Expand file tree Collapse file tree
packages/vue/src/components/dialog/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ describe('Dialog', () => {
1010
1111 await waitFor ( async ( ) => expect ( await screen . findByText ( 'Dialog Title' ) ) . toBeVisible ( ) )
1212
13- await user . click ( screen . getByText ( 'Close' ) )
13+ await waitFor ( ( ) => user . click ( screen . getByText ( 'Close' ) ) )
1414 await waitFor ( async ( ) => expect ( await screen . findByText ( 'Dialog Title' ) ) . not . toBeVisible ( ) )
1515 } )
1616
@@ -21,7 +21,7 @@ describe('Dialog', () => {
2121 await user . click ( screen . getByText ( 'Open Dialog' ) )
2222 await waitFor ( async ( ) => expect ( await screen . findByText ( 'Dialog Title' ) ) . toBeVisible ( ) )
2323
24- await user . click ( screen . getByText ( 'Close' ) )
24+ await waitFor ( ( ) => user . click ( screen . getByText ( 'Close' ) ) )
2525 await waitFor ( ( ) => expect ( onExitComplete ) . toHaveBeenCalled ( ) )
2626 } )
2727} )
You can’t perform that action at this time.
0 commit comments