Here are ways to test notifications and get them working.
-
-
Quick checklist:
-
-
- Notifications are turned on for
- {{ AppString.APP_NAME_NO_SPACES }}
- (or the browser you use for the app) in system Settings.
-
-
- Battery and background settings are not restricting the app (see
- "Battery & background" under Check App Permissions).
-
-
- You're not in Focus or Do Not Disturb, or the app is allowed in that
- mode.
-
-
Run the Full Test below.
-
-
-
Full Test
-
-
- If this works then you're all set.
-
-
-
-
-
Android Users
-
-
- Note that you may not receive notifications when the app is in the
- background. When you're done working, close the app, and then you'll
- get the reminder notifications.
-
-
-
-
- If this app doesn't support notifications...
-
-
-
-
- To be notified of interesting updates, install this app on your device
- (as opposed to using it inside the browser app). In Chrome, it may prompt
- you, and you can also look for the "Install" command in the browser
- settings.
-
-
-
-
- If you must enable notifications...
-
-
-
-
-
-
-
-
-
-
- If you're waiting for system initialization...
-
-
-
-
- ... and it never stops, then there is a problem with the underlying
- service worker or push server mechanism in your browser. Your best bet
- is to follow the "Reinstall" steps below or use a different browser.
-
-
-
-
Check App Permissions
-
-
- If you use Focus (iOS) or Do Not
- Disturb (Android), notifications may be silenced. Check that
- {{ AppString.APP_NAME }} is allowed in that mode, or temporarily turn
- it off to test.
-
-
- In Apple iOS, check "Settings" -> "Notifications" and look for
- {{ AppString.APP_NAME_NO_SPACES }}
- (the app name in system Settings). If you added the app from a browser
- (e.g. "Add to Home Screen"), you may see
- the browser (e.g. Safari) instead — ensure notifications are enabled
- for that and for the site if listed separately. Make sure notifications
- are enabled.
-
-
- In Android, go to "Settings" -> "Notifications" and look for
- {{ AppString.APP_NAME_NO_SPACES }}
- (or Chrome if you installed from Chrome). Alternatively, long-press
- the app icon, select "App Info", then
- "Notifications" and make sure they're enabled. If it's still a problem
- then go further:
-
-
- If you installed the app with Chrome, make sure there are no other
- tabs with it open. Here are some ways to clear caches that can mess
- things up (and note that this clears out data from the installed app
- -- which is good to do while the app is installed):
-
-
-
- Go to Chrome "App Info", then "Storage & Cache" and "Clear Storage".
-
-
- Go to Chrome "Settings", then "Privacy and Security" and "Clear
- browsing data", then "Cookies and site data". Make sure the "Time
- Range" at the top shows "All time".
-
-
-
- On a Mac, go to "Settings" and check "Notifications".
-
-
-
-
Battery & background
-
- Notifications (especially scheduled reminders) can be blocked by
- battery or background settings. Check the following:
-
-
-
- iOS: In Settings → Battery, ensure Low Power Mode
- is off (it can delay background activity). In Settings → General →
- Background App Refresh, ensure it's on and that
- {{ AppString.APP_NAME_NO_SPACES }}
- (or Safari if you use the app from Safari) is allowed.
-
-
- Android: In Settings → Apps →
- {{ AppString.APP_NAME_NO_SPACES }} (or Chrome if you use the PWA),
- open Battery and set to "Unrestricted" or "Don't
- optimize" so the app can run in the background. Battery Saver or
- Adaptive Battery can also limit notifications — try disabling them or
- adding an exception for the app.
-
-
-
-
-
Check Browser Permissions
-
-
In Apple iOS, check Settings -> Notifications.
-
In Android, check Settings -> Notifications.
-
- You can find more details about compatibility
-
- here
-
-
-
-
- Check Operating System (OS) Permissions
-
-
-
-
Mobile Phone - Apple iOS
-
- Notifications require iOS 16.4 or higher. To check your iOS version,
- go to Settings > General > About > Software Version.
-
-
-
Mobile Phone - Google Android
-
- We recommend Chrome. It must be version 42 or higher. Check your
- version under Settings -> About Chrome.
-
-
-
Desktop - Mac
-
-
- See "System Settings" -> "Notifications" and make sure it is
- enabled for the browser you're using. Note that these
- notifications require Mac OS 13; see your macOS version under
- Apple -> "About This Mac".
-
-
-
-
Desktop - Windows
- In Windows, check "Settings" -> "Notifications".
-
+
+ Use 10-minute rollover (testing)
+
+
+
+
+
-
- You can find more details about compatibility
-
- here
-
-
-
-
-
Reinstall
-
-
- If all else fails, it's best to start over.
-
-
- Of course, you'll want to back up all your data first -- all seeds as
- well as the contacts & settings -- on the Profile
- page.
-
-
- Here are instructions to uninstall the app and clear out caches and
- storage. Note that you should first ensure that browser tabs with
- {{ AppString.APP_NAME }} are closed. (If any are open then that will
- interfere with your refresh.)
-
-
-
- Clear cache.
-
-
- In mobile, look for the browser app settings. This is true even
- for an installed app: go to the browser which you used to
- initially visit timesafari.app, because those settings affect
- the app. Look for "Delete browsing data" in the "Settings",
- under "Privacy and Security".
-
-
- In Chrome, go to `chrome://settings/cookies` and "all site data
- and permissions" for timesafari.app; in Firefox, go to
- `about:preferences` and search for "cache" then "Manage Data"
- for timesafari.app. Also manually remove the IndexedDB data if
- the DBs still show.)
-
-
-
-
- Clear notification permission. (In Chrome, go to
- `chrome://settings/content/notifications`; in Firefox, go to
- `about:preferences` and search for "notifications".)
-
-
- Unregister service worker. (In Chrome, go to
- `chrome://serviceworker-internals/`; in Firefox, go to
- `about:serviceworkers`.)
-
-
- Clear "Cache Storage". (In Chrome, in dev tools under "Application";
- in Firefox, in dev tools under "Storage".)
-
-
-
Then reinstall the app.
-
-
-
Tests
-
-
- If that didn't show a notification on your device, the problem is that
- your browser or your operating system are not allowing notifications
- through. See "Check App Permissions" and "Check Browser Permissions" and
- "Check Operating System (OS) Permissions" above.
-
-
-
-
- If that showed "null" then the notification is not active.
-
-
-
-
-
- If that didn't show a notification on your device, there is a problem
- getting to the push server. Disable notifications and then enable them
- again.
-
-
-
-
- If you don't see a message, it could be that there is nothing new for
- you to see. If the previous test worked, then things should work fine.
- If you notice a full 24 hours where you get no notification and you know
- that there are new items that should show, gather as many details as
- possible and go to the bottom of
- this page
- for ways to contact us.
-
+
-
diff --git a/test-playwright/60-new-activity.spec.ts b/test-playwright/55-new-activity.spec.ts
similarity index 100%
rename from test-playwright/60-new-activity.spec.ts
rename to test-playwright/55-new-activity.spec.ts
diff --git a/test-playwright/README.md b/test-playwright/README.md
index 4aea68e354..5b813cb781 100644
--- a/test-playwright/README.md
+++ b/test-playwright/README.md
@@ -4,20 +4,7 @@ This directory contains the automated end-to-end test suite for Time Safari usin
## Test Structure
-Tests are organized by feature area and numbered for execution order:
-
-- `00-noid-tests.spec.ts` - Tests for unregistered users
-- `05-invite.spec.ts` - Contact invitation functionality
-- `10-check-usage-limits.spec.ts` - Usage limit verification
-- `20-create-project.spec.ts` - Project creation
-- `25-create-project-x10.spec.ts` - Bulk project creation
-- `30-record-gift.spec.ts` - Gift recording
-- `33-record-gift-x10.spec.ts` - Bulk gift recording
-- `35-record-gift-from-image-share.spec.ts` - Gift recording from shared images
-- `37-record-gift-on-project.spec.ts` - Project-specific gift recording
-- `40-add-contact.spec.ts` - Contact management
-- `50-record-offer.spec.ts` - Offer recording
-- `60-new-activity.spec.ts` - Activity feed updates
+Tests are organized by feature area and numbered for execution order.
## Key Files
diff --git a/test-playwright/TESTING.md b/test-playwright/TESTING.md
index 1efbd7ff01..6e7e2fbc63 100644
--- a/test-playwright/TESTING.md
+++ b/test-playwright/TESTING.md
@@ -138,12 +138,12 @@ await page.waitForFunction(() => {
3. If you find yourself wanting to see the testing process try something like this:
```
-npx playwright test -c playwright.config-local.ts test-playwright/60-new-activity.spec.ts --grep "New offers for another user" --headed
+npx playwright test -c playwright.config-local.ts test-playwright/40-add-contact.spec.ts --grep "New offers for another user" --headed
```
This command allows you to:
-- **Run a specific test file**: `test-playwright/60-new-activity.spec.ts`
+- **Run a specific test file**: `test-playwright/40-add-contact.spec.ts`
- **Filter to a specific test**: `--grep "New offers for another user"` runs only tests with that name
- **See the browser**: `--headed` opens the browser window so you can watch the test execute
- **Use local config**: `-c playwright.config-local.ts` uses the local configuration file