@@ -1451,30 +1451,6 @@ describe("composerDraftStore draft promotion", () => {
14511451 expect ( useComposerDraftStore . getState ( ) . getDraftSession ( draftId ) ) . toBeNull ( ) ;
14521452 } ) ;
14531453
1454- it ( "keeps the redirect of a draft finalized while another route was open" , async ( ) => {
1455- // A failed send restored onto its existing thread, or a background send, finalizes while the
1456- // user is elsewhere; "Open draft" or Back to /draft/<id> later must still reach the thread.
1457- const h = draftPromotionHarness ( ) ;
1458- const store = useComposerDraftStore . getState ( ) ;
1459- store . setProjectDraftThreadId ( projectRef , draftId , { threadId } ) ;
1460- h . arrive ( threadRef , {
1461- latestRun : preparingRun ,
1462- latestUserMessageAt : "2026-03-29T00:00:00.000Z" ,
1463- } ) ;
1464- await waitForDraftHeroTransition ( ) ;
1465- expect ( useComposerDraftStore . getState ( ) . getDraftSession ( draftId ) ) . toBeNull ( ) ;
1466-
1467- const laterDraftId = DraftId . make ( "draft-later" ) ;
1468- const laterThreadId = ThreadId . make ( "thread-later" ) ;
1469- store . setProjectDraftThreadId ( projectRef , laterDraftId , { threadId : laterThreadId } ) ;
1470- h . arrive ( scopeThreadRef ( TEST_ENVIRONMENT_ID , laterThreadId ) , {
1471- latestRun : preparingRun ,
1472- latestUserMessageAt : "2026-03-29T00:00:00.000Z" ,
1473- } ) ;
1474- await waitForDraftHeroTransition ( ) ;
1475- expect ( useComposerDraftStore . getState ( ) . getPromotedDraftRedirect ( draftId ) ) . toEqual ( threadRef ) ;
1476- } ) ;
1477-
14781454 it ( "does not finalize a draft whose send failed and was restored" , async ( ) => {
14791455 const h = draftPromotionHarness ( ) ;
14801456 const store = useComposerDraftStore . getState ( ) ;
0 commit comments