Load with the extension active, an APR set, and at least two cards with rewards set.
This page reads as a cart page from its URL (the /cart/ segment). The
general scanner cases live in /price-fixture.html;
this fixture is about badges surviving a retail cart layout — and about the ONE
rewards badge on the page anchoring to the order total. Because there is only one,
the sections below describe a single page-wide story: the badge must end up in
section 2's Order Summary, and nowhere else.
| Item | Price | Qty | Total |
|---|---|---|---|
| Slouchy pullover sweater | $128.00 | 1 | $128.00 |
| Wide-leg jeans | $98.00 | 2 | $196.00 |
Expect: money badges in every price cell, each fully inside its own cell — nothing crossing into the Qty column, nothing clipped behind the panel. The rewards badge must NOT be here: not beside the first price (the old anchor behavior), not in the table, and never on the Subtotal row — "Subtotal" is an explicit not-the-total label, even though this panel is short. If a badge overflows a cell, the label got long again: the fix is compactCardName in lib/rewards.js, never z-index — an inline badge cannot escape a table cell the way the tooltip can via the Popover API.
$324.00 total • 3 items
Expect: the small header line above ("$324.00 total • 3 items") gets a money badge but stays ONE unbroken line — the rewards badge may sit briefly BELOW it as a block while the page loads, but never inline inside the sentence. Within ~3s the "Order total" row appears in the Order Summary and the rewards badge moves there, once, and stays: on its own line under that row, reading "Best: " plus a short card name only — no rate, no category, no issuer. It must not sit on Subtotal or Estimated tax. If it never moves off the header line, the label-tier upgrade in placeCartRewardsNote regressed; if it bounces between rows while amounts change, something reintroduced amount-based anchoring — anchor choice is label + document order, never size.
Expect: hovering the rewards badge in the Order Summary shows the full tooltip — every card under the user's own full name with its rate ("1.5% everything else"), caps, and notes — floating over the panel, not clipped by it. The badge went compact and block; the tooltip is where the dropped words went.