web: don't check for notification permission in tests

This commit is contained in:
Abdullah Atta
2023-08-07 05:46:27 +05:00
parent 2d5c8c9e6d
commit 565ef2c321

View File

@@ -168,7 +168,7 @@ export default function AddReminderDialog(props: AddReminderDialogProps) {
);
const permissionResult = await Notification.requestPermission();
if (permissionResult !== "granted") {
if (!IS_TESTING && permissionResult !== "granted") {
showToast(
"error",
"Please grant notifications permission to add new reminders."