Dashboard › spotlight › getsentry/spotlight E2E: body.textConte…
019ef50a-80f4-736b-b2ec-4b8b7fb04d66| Project | Hits | Last recalled |
|---|---|---|
| opencode-lore | 1 | 13h ago |
| opencode | 1 | 10d ago |
Trap: body.waitFor() then body.textContent() !== '' looks like a safe readiness check because the body element exists immediately. Fix: the body element is present in the SPA HTML shell before React hydrates, so a one-shot read races React's first render. Other tests pass incidentally due to sendTestEnvelope 500ms settle delay or explicit waitForTimeout(1000). Stable readiness selector: nav[aria-label="Navigation"] in TelemetrySidebar.tsx — renders unconditionally once React mounts, independent of event data. Use a waitForAppReady(page, timeout) helper in fixtures.ts that asserts this nav locator is visible with Playwright's built-in auto-retry.