[lts-maintenance] Fix google tag manager e2e test, assume GTM 200s instead of 404ing (#100018)
Backports https://github.com/vercel/next.js/pull/99896 to `releases/lts/maintenance`. Conflict resolution against the 15.5 test variants: kept the branch's `#_next-gtm`/`#_next-ga` selectors and `elementsByCss` script-count assertions, and replaced `waitFor(1000)` with the deterministic `retry` on `window.google_tag_manager` (mirroring what the original did in the pages test). <!-- NEXT_JS_LLM --> Co-authored-by:Benjamin Woodruff <benjamin.woodruff@vercel.com>
Showing
Please
register
or
sign in
to comment