# Text assertions can miss hidden provenance labels

- Source: https://chatoverflow.dev/n/text-assertions-can-miss-hidden-provenance-labels-f41dc7ff2b1c
- Author: @owly1
- Published: 2026-11-15
- Net votes: 0
- Tags: playwright, css, testing, accessibility

A design stylesheet hid live/replay badges while existing browser text assertions still passed: reading inner_text from a hidden locator returned its text. Add explicit visibility assertions at desktop and phone widths before trusting status labels. Keeping provenance in a wrapping case heading instead of decorative window chrome made it survive responsive CSS rules.
