Payvern scanner fixture

Load with the extension active and an APR set. Each box says what should happen.

Where a section counts badges, it counts the money badge. Since 1.4.0 every marked-up price also carries a magnifier icon on hover (Google Shopping search); accounts that switched it on in Settings also see a “Financing adds” note per price; in invest mode the money badge shows growth instead of true cost. One dashed rewards badge appears per page when two saved cards have rewards set — on product detail and cart/checkout pages only. This fixture declares itself a product page through JSON-LD in its head; remove that block and the rewards badge should disappear while every money badge stays. The cart-table layout cases (badge overflow in narrow cells) live in /cart/fixture.html, which classifies as a cart page by its URL.

1 — Plain price, single text node

Wireless keyboard — $89.99

Expect: struck through, badge beside it. This is the case that already worked.

2 — Amazon main price, split across elements

$149.99

Expect: exactly one badge, beside the visible $149.99. No text node here contains the whole price — this is the bug from QA. The 1×1px .a-offscreen copy must not get its own badge.

3 — Loaded late, after the page settles

Loading price…

Expect: a badge appears within ~1s of the price arriving. Tests the MutationObserver.

4 — Loaded late, and also split across elements

Loading price…

Expect: one badge. Both fixes have to work together.

5 — Financial figures (the ubs.com false positive)

Group revenues were $73.3bn, up from $71.2 billion, with $1.2M in fees and $4trn under management.

Reported profit of £2.4bn and €1.5 billion across the year.

Expect: no badges at all. None of these are purchases.

6 — Real prices that look like figures

A $20 t-shirt, a $5 M size, a $30 kg bag of feed, and $12 thousand-thread-count sheets.

Expect: four badges — $20, $5, $30, $12. The suffix rule must not eat these.

7 — Should never match

Zip 94103. Order 100238475. Call 1,800.1234. Free: $0.00.

Hidden price $999.99

Expect: no badges, including none for the display:none paragraph.

8 — Discounted items, crossed-out originals

Semantic tag: $99.99 $79.99

Older tags: $88.00 $70.00 and $60.00 $45.00

Inline style: $120.00 $95.00

Styled wrapper, price nested inside it — the case a naive check misses, because the inner span's own text-decoration reads "none": $250.00 $199.00

Split across elements, the whole group struck: $310.00 $275.00

Expect: five badges, one per row, and each beside the price on the right. No badge on any crossed-out figure. If a badge appears next to a struck price, the ancestor walk in isStruckThrough is the thing to look at.

9 — Labeled originals, the way Best Buy and Target actually write them

Real sites mostly do not strike the original price — they label it, and the strike where it exists is a CSS class. These replicate the live structures that shipped the badge-on-the-wrong-price bug.

Best Buy shape: Comp. Value: $249.99

Best Buy "Was" variant: $159.99 Was $199.99

Target shape: $179.99 reg $249.99

CSS-class strike, no line-through style attribute in the markup itself — the class is what carries it: $95.00 $120.00

Label in one text node with both prices: Was $249.99 now $179.99

A sentence that merely starts with a label word — must still badge: Was there ever a better deal? $99.99

Expect: six money badges — $189.99, $159.99, $179.99, $95.00, $179.99 (from the shared text node), and $99.99. No badge on $249.99, $199.99, or $120.00 in any row. If a labeled original gets a badge, look at isInactivePrice in lib/prices.js.

10 — Underline is not a discount

$42.00

Expect: one badge. Only line-through means "not the price you pay".

11 — Tooltip vs. hostile page layout (the Best Buy overlay bug)

The price below sits inside a container with a transform (which traps any absolutely-positioned child in its stacking context), overflow clipping, and tight height — then rows with their own stacking contexts follow, the way Finance Options followed the price on Best Buy.

Espresso machine — $479.99
Finance Options — this row has its own stacking context (z-index 50)
Special Offers — and so does this one

Expect: hovering the badge shows the full tooltip floating cleanly ABOVE both rows, not clipped by the dashed container and not sliced under either row. Scrolling closes it. If it hides behind the rows, the popover top-layer path in attachTooltip regressed to in-page positioning.

12 — Raised cents with no decimal point (Walmart listing)

Walmart's listing markup, copied from the live page on 26 Oct 2026: the cents are raised and smaller, there is no "." anywhere, and the screen-reader copy sits beside the drawn price. 1.6.7 read these as $7,997 and $13,400.

current price $79.97

Expect: one badge, Listed $79.97 (never $7,997).

current price Now $134.00, Was $149.00

Expect: one badge, Listed $134.00 (never $13,400). The struck $149.00 gets none.

$4550

Expect: one badge, Listed $45.50. Raised cents with no screen-reader copy: the styling alone says where the decimal goes.

$7997

Expect: no badge. Same-size pieces with no decimal point and nothing to confirm them could be $79.97 or $7,997, so the safety rule shows nothing.

current price $89.97

Expect: no badge. The drawn price reads $79.97 but the page's own screen-reader copy says $89.97; a reading the page contradicts is never badged.

13 — A link laid over the whole product card (Walmart and Nike listings)

Listing pages make a whole card clickable with one transparent link stretched across it (Walmart's a.absolute.w-100.h-100.z-1, Nike's a.product-card__link-overlay, both absolute at z-index 1). 1.6.7 drew the badge under it, so hovering opened no tooltip and the bookmark opened the product.

Air fryer, 5.8 qt
$89.00

Expect: one badge. Hovering it opens the tooltip (interest, APR, Edit), and the bookmark saves the price instead of following the card's link.

Running shoe
$115.00

Expect: the same, for Nike's shape: the price sits inside a wrapper with a transform (Nike's product-card__animation_wrapper), which no badge can be raised out of.

14 — A price whose inner spans are replaced on hover (Amazon store grid)

Amazon's store pages (amazon.co.uk/stores/page/…, seen 27 Oct 2026) draw a price as "£" + "179" + raised "99" with a hidden 1px decimal point, and replace the price's inner wrapper span when the card is hovered, to show "Quick look". 1.6.8 put the badge inside that wrapper, so it vanished for the whole hover. The script below does the same replacement on hover.

product image
Quick look
Garmin smart band
£179.99

Expect: one badge, Listed £179.99 (never £179). Hover the card: "Quick look" appears and the badge stays; hover the badge and its tooltip opens.

15 — Sale prices under a whole-block label, and a delivery banner (Nike)

Nike's sale prices, copied from nike.com/gb on 28 Oct 2026: both prices sit inside one wrapper labelled for screen readers "current price …, original price …". 1.6.8 read "original price" in that label and badged neither. The banner below is Nike's delivery promo, which 1.6.8 badged as if £4.50 were something for sale.

30% off

Expect: one badge, Listed £76.99. None on the struck £109.99.

30% off

Expect: one badge, Listed £62.99. None on the struck £89.99.

Expect: no badge anywhere in the banner: £50+ and £99+ are thresholds, £4.50 is a delivery fee, and the whole line is promotional copy.

16 — A plain price on a shopping page (the shopping check, 1.6.10)

From 1.6.10 Payvern draws badges only on pages with a sign of shopping: product data, an add-to-cart button, a cart link, or a cart or checkout address. This page declares a product, so the check passes for every price on it, including this one, which sits outside any product block.

Gift card — $25.00

Expect: struck through, badge beside it. The opposite case, a page with figures but nothing for sale, is the quiet-page fixture: no badges there at all.

17 — Switching variant rewrites the price in place (Walmart product page, 1.6.11)

On walmart.com/ip/… (3 Nov 2026), picking another colour rewrites the price's own text node, the way React updates text. 1.6.10 had moved the old price into its badge wrapper, so after a switch the old price stayed on the page with its badge, beside the new one: two badges, one for a price nobody was being offered. Each box below starts on Green; press Orange, then Green again.

Expect: one badge, Listed $107.54; after Orange, still one badge, Listed $139.99, and no $107.54 left on the page; after Green again, one badge for $107.54.

Expect: the same in Walmart's split markup ($, whole dollars, raised cents): one badge for $107.54, then one for $139.99, never both.

$10754current price $107.54

Expect: one badge, on whichever price is showing. Here the switch only hides one price and shows the other (no text changes at all).

18 — A price in a box too small for the badge (Amazon carousels, 1.6.11)

Amazon UK's "Recommended for you" carousel (amazon.co.uk/b?node=51346572031, 4 Nov 2026) holds each price in a fixed-height row, inside a narrow card, that hides overflow (48px there; 40px here, with the same effect). A full badge with its save and search controls is wider than that, so it wrapped onto a second line and the row cut off half of it, and the top of the price. A badge must never be cut off, hidden, or spill over the title.

Expect: one badge, fully visible on the price's line, without the save and search icons. The price is not cut off.

$1,249.99

Standing desk, oak

Expect: either a smaller badge that fits entirely in the 120px column, or no badge and the price left exactly as the page drew it. Never half a badge.

$349.99

Noise-cancelling headphones

Expect: the badge doesn't cover the title below. This row has a fixed height but doesn't hide overflow, so a badge that wrapped would spill over the title.

$89.00

Cast iron skillet, 12 inch

Expect: the full badge with its save and search icons, as everywhere else. Only badges that don't fit are made compact.