Skip to content

Commit 1c0d6f9

Browse files
Merge pull request #63 from off-grid-ai/test/capture-optin-e2e
test(e2e): screenshot the capture opt-in control (Task 1 evidence)
2 parents d046e58 + 23193c4 commit 1c0d6f9

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

e2e/screenshots-quality-hardening.spec.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,22 @@ test('capture Settings — model pipeline controls', async () => {
8383
await shot('settings-model-pipeline')
8484
})
8585

86+
test('capture Settings — capture opt-in control', async () => {
87+
// Task 1 (capture is explicit opt-in per device). The platform-conditional DEFAULT is a
88+
// main-process rule proven by unit + real-seam integration in desktop-pro; here we capture the
89+
// user-facing surface the opt-in is controlled through — the Settings "Capture" section with its
90+
// status label and pause/resume/restart controls — which is what a user sees to turn capture on.
91+
await nav('Settings')
92+
// The capture control lives inside the collapsed "Capture & processing" accordion — expand it.
93+
const header = page.getByText('Capture & processing', { exact: false }).first()
94+
if (await header.isVisible().catch(() => false)) {
95+
await header.scrollIntoViewIfNeeded().catch(() => {})
96+
await header.click().catch(() => {})
97+
await page.waitForTimeout(600)
98+
}
99+
await shot('settings-capture-optin')
100+
})
101+
86102
test('capture Integrations — BYO Google OAuth client setup', async () => {
87103
const reached = (await nav('Integrations')) || (await nav('Connectors'))
88104
if (!reached) {
186 KB
Loading

0 commit comments

Comments
 (0)