Loading challenge...
Extract a price whose currency symbol is CSS ::before content and digits are split across per-character spans
The visible price and the status label are assembled from CSS pseudo-elements and per-character spans โ what you see is not what the DOM says
The price reads $1,299.00 on screen, but the $ is a CSS ::before pseudo-element (not a text node), the integer part is a chain of per-character <span>s, and the decimals are a separate node.
The status pill looks like it says ACTIVE, yet its textContent is empty โ the label is entirely ::before content.
Extract the numeric price even though the DOM text is fragmented
Normalized numeric value the test should extract:
1299.00
Automation hints
getByText("$1,299.00") fails because the $ is ::before content, never a text node.#price-integer โ e.g. textContent of #price yields 1,299.00 (without the $); then strip the comma to normalize.#price-decimals; combine them with the integer spans rather than assuming one continuous string.#status-pill shows ACTIVE visually, but its textContent is empty โ assert on the accessible name (aria-label) or read getComputedStyle(el, "::before").content, not innerText.#price-readout[data-value] โ prefer a stable data attribute over scraping pseudo-content when one is provided.