mirror of
https://github.com/block/buzz.git
synced 2026-10-27 12:40:30 +00:00
feat(web): add Browse releases link next to invite download (#2255)
Related to https://github.com/block/buzz/issues/2093 Invite pages offered a platform-resolved binary download with no path to the GitHub releases listing for users who wanted information first. ### Changes - Keep the smart **Download it now** CTA - Add an always-visible **Browse releases** link pointing at `https://github.com/block/buzz/releases` - Extend invite smoke coverage for the new link Note: the marketing-site “Get the App” button on buzz.xyz appears to live outside this repository; this improves the in-repo web invite flow. Signed-off-by: Ian Alloway <ianalloway@usf.edu> Signed-off-by: Fizz <300bd4cedcdddb62f77935de51c301034bdb4cd97da9aaca46d59673a1ebc7cf@buzz.block.builderlab.xyz>
This commit is contained in:
@@ -79,6 +79,9 @@ test("invite requires age and legal consent before opening Buzz", async ({
|
||||
"href",
|
||||
"https://github.com/block/buzz/releases/download/v0.4.9/Buzz_0.4.9_x64-setup_alpha-unsigned.exe",
|
||||
);
|
||||
await expect(
|
||||
page.getByRole("link", { name: "Browse releases" }),
|
||||
).toHaveAttribute("href", "https://github.com/block/buzz/releases");
|
||||
|
||||
const ageConfirmation = page.getByLabel("I am 18 years of age or older.");
|
||||
const agreementConfirmation = page.getByLabel(
|
||||
@@ -366,6 +369,10 @@ test("invite download links to the appropriate platform destination", async ({
|
||||
page.getByRole("link", { name: "Download it now" }),
|
||||
device.name,
|
||||
).toHaveAttribute("href", device.expectedUrl);
|
||||
await expect(
|
||||
page.getByRole("link", { name: "Browse releases" }),
|
||||
device.name,
|
||||
).toHaveAttribute("href", "https://github.com/block/buzz/releases");
|
||||
await context.route(device.expectedUrl, (route) =>
|
||||
route.fulfill({ contentType: "text/html", body: "Store destination" }),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user