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 43da27d22..a86d2f14b 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 @@ -16,8 +16,8 @@ void main() { await _requestAndDenyMicrophonePermission($); await _requestAndDenyMicrophonePermission($); - await _requestAndDenyContactsPermission($); - await _requestAndDenyContactsPermission($); + await _requestAndDenyLocationPermission($); + await _requestAndDenyLocationPermission($); }); } @@ -49,11 +49,11 @@ Future _requestAndDenyMicrophonePermission( expect($(#microphone).$(#statusText).text, 'Not granted'); } -Future _requestAndDenyContactsPermission( +Future _requestAndDenyLocationPermission( PatrolIntegrationTester $, ) async { if (!await Permission.contacts.isGranted) { - expect($(#contacts).$(#statusText).text, 'Not granted'); + expect($(#location).$(#statusText).text, 'Not granted'); await $('Request contacts permission').tap(); if (await $.native.isPermissionDialogVisible(timeout: _timeout)) { await $.native.denyPermission(); @@ -61,5 +61,5 @@ Future _requestAndDenyContactsPermission( } } - expect($(#contacts).$(#statusText).text, 'Not granted'); + expect($(#location).$(#statusText).text, 'Not granted'); } 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 f0a3a3b1d..6beff8906 100644 --- a/dev/e2e_app/integration_test/permissions/permissions_many_test.dart +++ b/dev/e2e_app/integration_test/permissions/permissions_many_test.dart @@ -12,7 +12,7 @@ void main() { await _requestAndGrantCameraPermission($); await _requestAndGrantMicrophonePermission($); - await _requestAndDenyContactsPermission($); + await _requestAndDenyLocationPermission($); }); } @@ -44,11 +44,11 @@ Future _requestAndGrantMicrophonePermission( expect($(#microphone).$(#statusText).text, 'Granted'); } -Future _requestAndDenyContactsPermission( +Future _requestAndDenyLocationPermission( PatrolIntegrationTester $, ) async { - if (!await Permission.contacts.isGranted) { - expect($(#contacts).$(#statusText).text, 'Not granted'); + if (!await Permission.location.isGranted) { + expect($(#location).$(#statusText).text, 'Not granted'); await $('Request contacts permission').tap(); if (await $.native.isPermissionDialogVisible(timeout: _timeout)) { await $.native.denyPermission(); @@ -56,5 +56,5 @@ Future _requestAndDenyContactsPermission( } } - expect($(#contacts).$(#statusText).text, 'Not granted'); + expect($(#location).$(#statusText).text, 'Not granted'); }