chore: Fix app

This commit is contained in:
2026-07-14 00:41:05 +02:00
parent 3e090933fd
commit edc4d935d8
98 changed files with 2878 additions and 155 deletions
@@ -24,13 +24,19 @@ describe('mobile-media-permission.rules', () => {
expect(isMobileCapturePermissionGranted('denied')).toBe(false);
});
it('requires microphone permission for voice capture', () => {
it('only blocks voice capture on an explicit native denial', () => {
expect(isVoiceCaptureAllowed({ microphone: 'granted' })).toBe(true);
expect(isVoiceCaptureAllowed({ microphone: 'denied' })).toBe(false);
// Dismissed dialogs ('prompt') defer to the WebView getUserMedia permission flow.
expect(isVoiceCaptureAllowed({ microphone: 'prompt' })).toBe(true);
expect(isVoiceCaptureAllowed({ microphone: 'prompt-with-rationale' })).toBe(true);
expect(isVoiceCaptureAllowed({})).toBe(true);
});
it('requires camera permission for camera capture', () => {
it('only blocks camera capture on an explicit native denial', () => {
expect(isCameraCaptureAllowed({ camera: 'granted' })).toBe(true);
expect(isCameraCaptureAllowed({ camera: 'prompt' })).toBe(false);
expect(isCameraCaptureAllowed({ camera: 'denied' })).toBe(false);
expect(isCameraCaptureAllowed({ camera: 'prompt' })).toBe(true);
expect(isCameraCaptureAllowed({})).toBe(true);
});
});