diff --git a/tests/e2e/utils/installApp.ts b/tests/e2e/utils/installApp.ts index 5c86590fd446..9c2f82e47336 100644 --- a/tests/e2e/utils/installApp.ts +++ b/tests/e2e/utils/installApp.ts @@ -25,9 +25,12 @@ export default function (packageName: string, path: string, platform = 'android' // install the app execAsync(`adb install ${path}`).then(() => // and grant push notifications permissions right away (the popup may block e2e tests sometimes) - execAsync(`adb shell pm grant ${packageName.split('/')[0]} android.permission.POST_NOTIFICATIONS`).catch((error: ExecException) => + // eslint-disable-next-line @typescript-eslint/no-unused-vars + execAsync(`adb shell pm grant ${packageName.split('/')[0]} android.permission.POST_NOTIFICATIONS`).catch((_: ExecException) => // in case of error - just log it and continue (if we request this permission on Android < 13 it'll fail because there is no such permission) - Logger.warn('Failed to grant push notifications permissions:', error.message), + Logger.warn( + 'Failed to grant push notifications permissions. It might be due to the fact that push-notifications permission type is not supported on this OS version yet. Continue tests execution...', + ), ), ), )