@@ -767,7 +767,7 @@ test("first-community shows the scenario cards for localhost", async ({
767767 ) . toBeVisible ( ) ;
768768} ) ;
769769
770- test ( "first-community profile step uses onboarding Next and Back controls " , async ( {
770+ test ( "connected first-community profile step cannot discard resumable onboarding " , async ( {
771771 page,
772772} ) => {
773773 await seedActiveIdentity ( page , BLANK_TYLER_IDENTITY ) ;
@@ -786,6 +786,7 @@ test("first-community profile step uses onboarding Next and Back controls", asyn
786786 stage : "profile" ,
787787 relayUrl : "wss://default.example.com" ,
788788 communityName : "Default" ,
789+ communityId : "e2e-default-community" ,
789790 createdAt : timestamp ,
790791 updatedAt : timestamp ,
791792 } ) ,
@@ -799,7 +800,6 @@ test("first-community profile step uses onboarding Next and Back controls", asyn
799800 await installMockBridge ( page , undefined , {
800801 relayWsUrl : "wss://default.example.com" ,
801802 skipOnboardingSeed : true ,
802- skipCommunitySeed : true ,
803803 } ) ;
804804 await page . goto ( "/" ) ;
805805
@@ -858,20 +858,15 @@ test("first-community profile step uses onboarding Next and Back controls", asyn
858858 ) . toBe ( true ) ;
859859 await expect ( page . getByTestId ( "community-profile-next" ) ) . toHaveText ( "Next" ) ;
860860 await expect ( page . getByTestId ( "community-profile-next" ) ) . toBeDisabled ( ) ;
861- await expect ( page . getByTestId ( "community-profile-back" ) ) . toHaveText ( "Back" ) ;
862-
863- await page . getByTestId ( "community-profile-back" ) . click ( ) ;
864- await expect (
865- page . getByRole ( "button" , { name : "Add me to a community" } ) ,
866- ) . toBeVisible ( ) ;
861+ await expect ( page . getByTestId ( "community-profile-back" ) ) . toHaveCount ( 0 ) ;
867862 await expect
868863 . poll ( ( ) =>
869864 page . evaluate (
870865 ( key ) => window . localStorage . getItem ( key ) ,
871866 COMMUNITY_ONBOARDING_TRANSACTION_STORAGE_KEY ,
872867 ) ,
873868 )
874- . toBeNull ( ) ;
869+ . not . toBeNull ( ) ;
875870} ) ;
876871
877872test ( "identity fallback text does not count as a real onboarding name" , async ( {
0 commit comments