You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0d9ea0c
Browse filesBrowse the repository at this point in the historyBrowse files
'Could not capture a test snapshot. Capturing the window failed. macOS grants Screen Recording and Accessibility to each app separately. In System Settings, open Privacy & Security and check that "T3 Code (Dev)" is allowed for both.',
'Could not capture a test snapshot. Finding the front window failed: osascript exited with code 1. macOS grants Screen Recording and Accessibility to each app separately. In System Settings, open Privacy & Security and check that "T3 Code (Dev)" is allowed for both.',
4024
+
);
4025
+
assert.include(String(error.cause),stderr);
4026
+
assert.equal(macCaptureMock.mock.calls.length,0);
4027
+
}),
4028
+
).pipe(Effect.provide(macTestCaptureLayer));
4029
+
});
4030
+
4031
+
it.effect("says when macOS has no window to test capture",()=>{
'Could not capture a test snapshot. Capturing the window timed out. macOS grants Screen Recording and Accessibility to each app separately. In System Settings, open Privacy & Security and check that "T3 Code (Dev)" is allowed for both.',
4063
+
);
4064
+
}),
4065
+
).pipe(Effect.provide(macTestCaptureLayer));
4066
+
});
4067
+
3988
4068
it.effect("rejects macOS test capture on other platforms",()=>
? `${task} failed: ${command} exited with code ${this.exitCode}.`
238
+
: `${task} failed.`;
239
+
// macOS can report both permissions as allowed while they belong to another install.
240
+
returnthis.appName===undefined
241
+
? `${summary}${failure}`
242
+
: `${summary}${failure} macOS grants Screen Recording and Accessibility to each app separately. In System Settings, open Privacy & Security and check that "${this.appName}" is allowed for both.`;
0 commit comments