Fix community profile onboarding back navigation (#2058)

Signed-off-by: Wes <wesbillman@users.noreply.github.com>
Co-authored-by: Pinky <44b8e82baa6e0e254e0208d68f335c283c94e7b78dd1fa10d5a49d3f13dd0435@sprout-oss.stage.blox.sqprod.co>
This commit is contained in:
Wes
2026-07-17 17:16:09 -07:00
committed by GitHub
co-authored by Pinky
parent 9f82850959
commit 385dde1138
2 changed files with 4 additions and 19 deletions
@@ -334,16 +334,6 @@ export function CommunityOnboardingFlow({
>
Next
</Button>
<Button
className="h-9 rounded-full bg-foreground/10 px-6 hover:bg-foreground/15"
data-testid="community-profile-back"
disabled={isPending || isUploadingAvatar}
onClick={clear}
type="button"
variant="ghost"
>
Back
</Button>
</OnboardingFooter>
</>
)
+4 -9
View File
@@ -767,7 +767,7 @@ test("first-community shows the scenario cards for localhost", async ({
).toBeVisible();
});
test("first-community profile step uses onboarding Next and Back controls", async ({
test("connected first-community profile step cannot discard resumable onboarding", async ({
page,
}) => {
await seedActiveIdentity(page, BLANK_TYLER_IDENTITY);
@@ -786,6 +786,7 @@ test("first-community profile step uses onboarding Next and Back controls", asyn
stage: "profile",
relayUrl: "wss://default.example.com",
communityName: "Default",
communityId: "e2e-default-community",
createdAt: timestamp,
updatedAt: timestamp,
}),
@@ -799,7 +800,6 @@ test("first-community profile step uses onboarding Next and Back controls", asyn
await installMockBridge(page, undefined, {
relayWsUrl: "wss://default.example.com",
skipOnboardingSeed: true,
skipCommunitySeed: true,
});
await page.goto("/");
@@ -858,12 +858,7 @@ test("first-community profile step uses onboarding Next and Back controls", asyn
).toBe(true);
await expect(page.getByTestId("community-profile-next")).toHaveText("Next");
await expect(page.getByTestId("community-profile-next")).toBeDisabled();
await expect(page.getByTestId("community-profile-back")).toHaveText("Back");
await page.getByTestId("community-profile-back").click();
await expect(
page.getByRole("button", { name: "Add me to a community" }),
).toBeVisible();
await expect(page.getByTestId("community-profile-back")).toHaveCount(0);
await expect
.poll(() =>
page.evaluate(
@@ -871,7 +866,7 @@ test("first-community profile step uses onboarding Next and Back controls", asyn
COMMUNITY_ONBOARDING_TRANSACTION_STORAGE_KEY,
),
)
.toBeNull();
.not.toBeNull();
});
test("identity fallback text does not count as a real onboarding name", async ({