Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions e2e/screenshots-quality-hardening.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,22 @@
await shot('settings-model-pipeline')
})

test('capture Settings — capture opt-in control', async () => {

Check failure on line 86 in e2e/screenshots-quality-hardening.spec.ts

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Add at least one assertion to this test case.

See more on https://sonarcloud.io/project/issues?id=off-grid-ai_off-grid-ai-desktop&issues=AZ-SaOE9ryKXHJKlunDZ&open=AZ-SaOE9ryKXHJKlunDZ&pullRequest=63
// Task 1 (capture is explicit opt-in per device). The platform-conditional DEFAULT is a
// main-process rule proven by unit + real-seam integration in desktop-pro; here we capture the
// user-facing surface the opt-in is controlled through — the Settings "Capture" section with its
// status label and pause/resume/restart controls — which is what a user sees to turn capture on.
await nav('Settings')
// The capture control lives inside the collapsed "Capture & processing" accordion — expand it.
const header = page.getByText('Capture & processing', { exact: false }).first()
if (await header.isVisible().catch(() => false)) {
await header.scrollIntoViewIfNeeded().catch(() => {})
await header.click().catch(() => {})
await page.waitForTimeout(600)

Check warning on line 97 in e2e/screenshots-quality-hardening.spec.ts

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Replace this fixed wait with a synchronization on an observable condition.

See more on https://sonarcloud.io/project/issues?id=off-grid-ai_off-grid-ai-desktop&issues=AZ-SaOE9ryKXHJKlunDa&open=AZ-SaOE9ryKXHJKlunDa&pullRequest=63
}
await shot('settings-capture-optin')
})

test('capture Integrations — BYO Google OAuth client setup', async () => {
const reached = (await nav('Integrations')) || (await nav('Connectors'))
if (!reached) {
Expand Down
Binary file added e2e/screenshots/qh-settings-capture-optin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading