@@ -719,16 +719,16 @@ test("navigating pushing URL state from a frame navigation fires events", async
719719 await nextEventOnTarget ( page , "frame" , "turbo:before-fetch-response" )
720720 await nextEventOnTarget ( page , "frame" , "turbo:frame-render" )
721721 await nextEventOnTarget ( page , "frame" , "turbo:frame-load" )
722- expect ( await nextAttributeMutationNamed ( page , "frame" , "aria-busy" ) , "removes aria-busy from the <turbo-frame>" ) . not . toBeTruthy ( )
723-
724722 expect ( await nextAttributeMutationNamed ( page , "html" , "aria-busy" ) , "sets aria-busy on the <html>" ) . toEqual ( "true" )
723+
724+ expect ( await nextAttributeMutationNamed ( page , "frame" , "aria-busy" ) , "removes aria-busy from the <turbo-frame>" ) . toEqual ( null )
725725 await nextEventOnTarget ( page , "html" , "turbo:before-visit" )
726726 await nextEventOnTarget ( page , "html" , "turbo:visit" )
727727 await nextEventOnTarget ( page , "html" , "turbo:before-cache" )
728728 await nextEventOnTarget ( page , "html" , "turbo:before-render" )
729729 await nextEventOnTarget ( page , "html" , "turbo:render" )
730730 await nextEventOnTarget ( page , "html" , "turbo:load" )
731- expect ( await nextAttributeMutationNamed ( page , "html" , "aria-busy" ) , "removes aria-busy from the <html>" ) . not . toBeTruthy ( )
731+ expect ( await nextAttributeMutationNamed ( page , "html" , "aria-busy" ) , "removes aria-busy from the <html>" ) . toEqual ( null )
732732} )
733733
734734test ( "navigating a frame with a form[method=get] that does not redirect still updates the [src]" , async ( {
@@ -933,6 +933,14 @@ test("navigating frame with form[method=post][data-turbo-action=advance] to the
933933 await page . click ( "#form-post-frame-action-advance button" )
934934 await nextEventNamed ( page , "turbo:load" )
935935
936+ expect ( await nextAttributeMutationNamed ( page , "form-post-frame-action-advance" , "aria-busy" ) , "sets aria-busy on the <form>" ) . toEqual ( "true" )
937+ expect ( await nextAttributeMutationNamed ( page , "frame" , "aria-busy" ) , "sets aria-busy on the <turbo-frame>" ) . toEqual ( "true" )
938+ expect ( await nextAttributeMutationNamed ( page , "html" , "aria-busy" ) , "sets aria-busy on the <html>" ) . toEqual ( "true" )
939+
940+ expect ( await nextAttributeMutationNamed ( page , "form-post-frame-action-advance" , "aria-busy" ) , "removes aria-busy from the <form>" ) . toEqual ( null )
941+ expect ( await nextAttributeMutationNamed ( page , "frame" , "aria-busy" ) , "removes aria-busy from the <turbo-frame>" ) . toEqual ( null )
942+ expect ( await nextAttributeMutationNamed ( page , "html" , "aria-busy" ) , "removes aria-busy from the <html>" ) . toEqual ( null )
943+
936944 await expect ( page . locator ( "#frame" ) , "clears turbo-frame[aria-busy]" ) . not . toHaveAttribute ( "aria-busy" )
937945 await expect ( page . locator ( "#html" ) , "clears html[aria-busy]" ) . not . toHaveAttribute ( "aria-busy" )
938946 await expect ( page . locator ( "#html" ) , "clears html[data-turbo-preview]" ) . not . toHaveAttribute ( "data-turbo-preview" )
0 commit comments