diff --git a/.github/workflows/test-ios-simulator.yaml b/.github/workflows/test-ios-simulator.yaml index 44e24984a..594b73631 100644 --- a/.github/workflows/test-ios-simulator.yaml +++ b/.github/workflows/test-ios-simulator.yaml @@ -104,7 +104,7 @@ jobs: sleep 10 # See https://github.com/leancodepl/patrol/issues/1282 TESTS_EXIT_CODE=0 - patrol test --exclude ${{ env.EXCLUDED_TESTS }} --verbose || TESTS_EXIT_CODE=$? + patrol test --exclude ${{ env.EXCLUDED_TESTS }} --verbose --clear-permissions || TESTS_EXIT_CODE=$? kill -SIGINT $recordingpid kill -SIGINT $logpid diff --git a/dev/e2e_app/integration_test/permissions/deny_many_permissions_twice_test.dart b/dev/e2e_app/integration_test/permissions/deny_many_permissions_twice_test.dart index a86d2f14b..66233a29d 100644 --- a/dev/e2e_app/integration_test/permissions/deny_many_permissions_twice_test.dart +++ b/dev/e2e_app/integration_test/permissions/deny_many_permissions_twice_test.dart @@ -52,9 +52,9 @@ Future _requestAndDenyMicrophonePermission( Future _requestAndDenyLocationPermission( PatrolIntegrationTester $, ) async { - if (!await Permission.contacts.isGranted) { + if (!await Permission.location.isGranted) { expect($(#location).$(#statusText).text, 'Not granted'); - await $('Request contacts permission').tap(); + await $('Request location permission').tap(); if (await $.native.isPermissionDialogVisible(timeout: _timeout)) { await $.native.denyPermission(); await $.pump(); diff --git a/dev/e2e_app/integration_test/permissions/permissions_many_test.dart b/dev/e2e_app/integration_test/permissions/permissions_many_test.dart index 6beff8906..f50d8de85 100644 --- a/dev/e2e_app/integration_test/permissions/permissions_many_test.dart +++ b/dev/e2e_app/integration_test/permissions/permissions_many_test.dart @@ -49,7 +49,7 @@ Future _requestAndDenyLocationPermission( ) async { if (!await Permission.location.isGranted) { expect($(#location).$(#statusText).text, 'Not granted'); - await $('Request contacts permission').tap(); + await $('Request location permission').tap(); if (await $.native.isPermissionDialogVisible(timeout: _timeout)) { await $.native.denyPermission(); await $.pump();