mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
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:
@@ -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>
|
||||
</>
|
||||
)
|
||||
|
||||
@@ -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 ({
|
||||
|
||||
Reference in New Issue
Block a user