diff --git a/apps/host/tests/qa1-downloads.test.mjs b/apps/host/tests/qa1-downloads.test.mjs index 9a7feb3f..e0ef38d4 100644 --- a/apps/host/tests/qa1-downloads.test.mjs +++ b/apps/host/tests/qa1-downloads.test.mjs @@ -145,7 +145,7 @@ test('4d: picture reading is on unless the person turned it off (no saved choice } finally { await f.cleanup(); } const screen = readSource(new URL('../src/components/NativeModels.tsx', import.meta.url), 'utf8'); assert.match(screen, /setVision\(installed\.visionEnabled === false \? 'no'/); - assert.match(screen, /else\s+setVision\('yes'\)/, 'a version that is not downloaded starts with Read pictures on'); + assert.match(screen, /else\s*\{?\s*setVision\('yes'\)/, 'a version that is not downloaded starts with Read pictures on'); }); test('no recognised engine: the app still downloads, warns in the card, and loading says it with the next step', async () => {