diff --git a/webapp/e2e/screens/checkout-select-refused-taken-desktop.png b/webapp/e2e/screens/checkout-select-refused-taken-desktop.png index 4d5a076..2c881db 100644 Binary files a/webapp/e2e/screens/checkout-select-refused-taken-desktop.png and b/webapp/e2e/screens/checkout-select-refused-taken-desktop.png differ diff --git a/webapp/e2e/screens/checkout-select-refused-taken-phone.png b/webapp/e2e/screens/checkout-select-refused-taken-phone.png index d3e322f..0f48f9c 100644 Binary files a/webapp/e2e/screens/checkout-select-refused-taken-phone.png and b/webapp/e2e/screens/checkout-select-refused-taken-phone.png differ diff --git a/webapp/e2e/screens/checkout-status-taken-desktop.png b/webapp/e2e/screens/checkout-status-taken-desktop.png index 3e92700..c196b6a 100644 Binary files a/webapp/e2e/screens/checkout-status-taken-desktop.png and b/webapp/e2e/screens/checkout-status-taken-desktop.png differ diff --git a/webapp/e2e/screens/checkout-status-taken-phone.png b/webapp/e2e/screens/checkout-status-taken-phone.png index 6d14f45..a696c5d 100644 Binary files a/webapp/e2e/screens/checkout-status-taken-phone.png and b/webapp/e2e/screens/checkout-status-taken-phone.png differ diff --git a/webapp/e2e/search.spec.ts b/webapp/e2e/search.spec.ts index f637a78..ead88f1 100644 --- a/webapp/e2e/search.spec.ts +++ b/webapp/e2e/search.spec.ts @@ -137,7 +137,7 @@ test("the checkout explains every refusal and keeps the order", async ({ page, r await shot(page, "N3b-price-changed") }) -test("a name registered by someone else while its order is checked says so at Pay, and that nothing was charged", async ({ page, request }) => { +test("a name registered by someone else while its order is checked says so at Pay", async ({ page, request }) => { const label = uniqueLabel("gone") await search(page, label) await toReview(page) @@ -145,7 +145,7 @@ test("a name registered by someone else while its order is checked says so at Pa await expect.poll(async () => (await searchName(request, label)).type, { timeout: REGISTRATION_MS }).toBe("registered") await payButton(page).click() await expect(onStep(page).getByRole("heading", { name: "This name is no longer available" })).toBeVisible() - await expect(onStep(page).getByText(`${label}.simplex became unavailable after you searched for it. Nothing was charged.`)).toBeVisible() + await expect(onStep(page).locator(".notice")).toHaveText(`${label}.simplex is no longer available.`) await shot(page, "N3g-taken-at-pay") await onStep(page).getByRole("button", { name: "Search another name" }).click() await expect(page.getByLabel("Name", { exact: true })).toHaveValue("") diff --git a/webapp/src/views/checkout.ts b/webapp/src/views/checkout.ts index 30a30bb..8fa2781 100644 --- a/webapp/src/views/checkout.ts +++ b/webapp/src/views/checkout.ts @@ -390,7 +390,7 @@ function buildTooMany({ checkout: c, hold }: CheckoutState, signal: AbortSignal) } function buildTaken({ checkout: c }: CheckoutState): HTMLElement { - return outcome({ tone: "info", icon: "info", title: "This name is no longer available", text: [nameText(c.label, c.chain.tld), " became unavailable after you searched for it. Nothing was charged."], + return outcome({ tone: "info", icon: "info", title: "This name is no longer available", text: [nameText(c.label, c.chain.tld), " is no longer available."], action: btn("Search another name", "", () => go(searchLink("", c.order?.registrationId))) }) }