diff --git a/e2e/screenshots-quality-hardening.spec.ts b/e2e/screenshots-quality-hardening.spec.ts index 01f5afb6..6c291198 100644 --- a/e2e/screenshots-quality-hardening.spec.ts +++ b/e2e/screenshots-quality-hardening.spec.ts @@ -101,3 +101,16 @@ test('capture Integrations — BYO Google OAuth client setup', async () => { } await shot('integrations-byo-google-setup') }) + +test('capture Replay — enable/disable capture control', async () => { + // Task 4: the Replay screen carries a compact enable/disable capture control in its header, + // sharing the same seam as the Settings Capture section (useCaptureControl). + const reached = await nav('Replay') + if (!reached) { + await shot('replay-not-reached') + return + } + const toggle = page.getByRole('button', { name: /capture/i }).first() + await toggle.scrollIntoViewIfNeeded().catch(() => {}) + await shot('replay-capture-toggle') +}) diff --git a/e2e/screenshots/qh-replay-capture-toggle.png b/e2e/screenshots/qh-replay-capture-toggle.png new file mode 100644 index 00000000..ba325b59 Binary files /dev/null and b/e2e/screenshots/qh-replay-capture-toggle.png differ