aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/tests
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-10-10 12:35:15 +0200
committerChristophe Besson <cbesson@gmail.com>2026-10-10 12:35:15 +0200
commit044c585f73cfd548e300859e89eaf5dcb40d3d3c (patch)
tree89d90fa844c4a453c84a228f541b84040c9f782d /packages/meshbay-hub/tests
parent0ead6a321fbe3cf97e22f6fee348f68b09bd53a8 (diff)
downloadmeshbay-044c585f73cfd548e300859e89eaf5dcb40d3d3c.tar.gz
feat(hub): photo backup moves to its own Android Sync page
A Phone section of the side menu leads to it, on the Android application only; Settings no longer holds it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-hub/tests')
-rw-r--r--packages/meshbay-hub/tests/harness/photo_sync_probe.py7
-rw-r--r--packages/meshbay-hub/tests/test_first_load_is_lean.py2
-rw-r--r--packages/meshbay-hub/tests/test_hook_ordering.py4
-rw-r--r--packages/meshbay-hub/tests/test_photo_sync_ui.py2
4 files changed, 8 insertions, 7 deletions
diff --git a/packages/meshbay-hub/tests/harness/photo_sync_probe.py b/packages/meshbay-hub/tests/harness/photo_sync_probe.py
index 48d9270..08c21b9 100644
--- a/packages/meshbay-hub/tests/harness/photo_sync_probe.py
+++ b/packages/meshbay-hub/tests/harness/photo_sync_probe.py
@@ -1,7 +1,8 @@
#!/usr/bin/env python3
"""
The phone's photo backup section (photo-sync-settings.js), rendered in Chrome
-at phone widths with names nobody would choose for a fixture.
+on its page (android-sync-page.js) at phone widths with names nobody would
+choose for a fixture.
Only the Android application has this section, and its engine is Chromium, so
one engine is the whole of it. The bridge is a stand-in that answers the way
@@ -89,12 +90,12 @@ window.meshbay = {
import { html, render } from './vendor/htm-preact.js';
import { initLocale } from './i18n.js';
import { startPhotoSync } from './photo-sync.js';
-import { PhotoSyncSection } from './photo-sync-settings.js';
+import { AndroidSyncPage } from './android-sync-page.js';
await initLocale();
startPhotoSync({ hub: '', getUser: () => ({ username: 'bob', token: 't' }),
getBundleKey: async () => '' });
const groups = [{ id: 'g1', name: '__GROUP__', owner_username: '__OWNER__' }];
-render(html`<${PhotoSyncSection} user=${{ username: 'bob', token: 't' }} groups=${groups} />`,
+render(html`<${AndroidSyncPage} user=${{ username: 'bob', token: 't' }} groups=${groups} />`,
document.getElementById('root'));
setTimeout(() => {
if (MODE === 'configured') return;
diff --git a/packages/meshbay-hub/tests/test_first_load_is_lean.py b/packages/meshbay-hub/tests/test_first_load_is_lean.py
index 25638ca..324ba0c 100644
--- a/packages/meshbay-hub/tests/test_first_load_is_lean.py
+++ b/packages/meshbay-hub/tests/test_first_load_is_lean.py
@@ -25,7 +25,7 @@ ON_DEMAND = {
"photos-app-settings.js", "helloworld-app-settings.js",
"video-player.js", "group-settings.js", "search-page.js",
# The Android application's photo backup: no browser or desktop has it.
- "photo-sync.js", "photo-sync-settings.js",
+ "photo-sync.js", "photo-sync-settings.js", "android-sync-page.js",
}
diff --git a/packages/meshbay-hub/tests/test_hook_ordering.py b/packages/meshbay-hub/tests/test_hook_ordering.py
index 73bac38..124bfb8 100644
--- a/packages/meshbay-hub/tests/test_hook_ordering.py
+++ b/packages/meshbay-hub/tests/test_hook_ordering.py
@@ -54,8 +54,8 @@ STATIC_FILES = [
"menu.js", "playlist-menu.js",
# The page's own confirm/alert, mounted outside the app tree.
"ask.js",
- # The Android application's photo backup, loaded by Settings on demand.
- "settings-page.js", "photo-sync-settings.js",
+ # The Android application's photo backup, on its own page loaded on demand.
+ "settings-page.js", "android-sync-page.js", "photo-sync-settings.js",
]
pytestmark = pytest.mark.skipif(not APP.exists(), reason="SPA sources unavailable")
diff --git a/packages/meshbay-hub/tests/test_photo_sync_ui.py b/packages/meshbay-hub/tests/test_photo_sync_ui.py
index bd512c1..6222b26 100644
--- a/packages/meshbay-hub/tests/test_photo_sync_ui.py
+++ b/packages/meshbay-hub/tests/test_photo_sync_ui.py
@@ -1,5 +1,5 @@
"""
-The photo backup section in Settings, measured in Chrome at phone widths
+The photo backup section of the Android Sync page, measured in Chrome at phone widths
(harness/photo_sync_probe.py). Android's WebView is the only engine that ever
shows it.