Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified webapp/e2e/screens/checkout-select-refused-taken-desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified webapp/e2e/screens/checkout-select-refused-taken-phone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified webapp/e2e/screens/checkout-status-taken-desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified webapp/e2e/screens/checkout-status-taken-phone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions webapp/e2e/search.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,15 @@ 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)
await control(request, "take", { label })
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("")
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/views/checkout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))) })
}

Expand Down
Loading