File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
packages/ra-core/src/dataProvider Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -539,6 +539,13 @@ describe('useUpdateMany', () => {
539539 ) . toBeNull ( ) ;
540540 expect ( screen . queryByText ( 'mutating' ) ) . not . toBeNull ( ) ;
541541 } ) ;
542+ await waitFor ( ( ) => {
543+ expect ( screen . queryByText ( 'success' ) ) . toBeNull ( ) ;
544+ expect (
545+ screen . queryByText ( 'Hello World from middleware' )
546+ ) . not . toBeNull ( ) ;
547+ expect ( screen . queryByText ( 'mutating' ) ) . toBeNull ( ) ;
548+ } ) ;
542549 screen . getByText ( 'Refetch' ) . click ( ) ;
543550 await waitFor ( ( ) => {
544551 expect ( screen . queryByText ( 'success' ) ) . not . toBeNull ( ) ;
@@ -660,7 +667,6 @@ describe('useUpdateMany', () => {
660667 it ( 'when undoable, it accepts middlewares and displays result and success side effects right away and reverts on cancel' , async ( ) => {
661668 render ( < WithMiddlewares mutationMode = "undoable" timeout = { 10 } /> ) ;
662669 await screen . findByText ( 'Hello' ) ;
663- await screen . findByText ( 'Hello' ) ;
664670 act ( ( ) => {
665671 screen . getByText ( 'Update title' ) . click ( ) ;
666672 } ) ;
You can’t perform that action at this time.
0 commit comments