diff options
Diffstat (limited to 'packages/meshbay-hub/tests/harness/photo_sync_probe.py')
| -rw-r--r-- | packages/meshbay-hub/tests/harness/photo_sync_probe.py | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/packages/meshbay-hub/tests/harness/photo_sync_probe.py b/packages/meshbay-hub/tests/harness/photo_sync_probe.py index 3ae73c1..3fcce8a 100644 --- a/packages/meshbay-hub/tests/harness/photo_sync_probe.py +++ b/packages/meshbay-hub/tests/harness/photo_sync_probe.py @@ -97,6 +97,38 @@ window.meshbay = { permit: async () => ({}), configure: async () => ({}), plan: async () => ({ item: null }), sent: async () => true, completed: async () => ({}), failed: async () => true, }, + calendarSync: { + status: async () => ({ + permission: 'granted', on: MODE === 'configured', destination: dest, + dir: dest && '__FOLDER__/bob-calendar', sent: 5, lastCompleted: Date.now(), + lastSent: dest && '__FOLDER__/bob-calendar/calendar-2026-10-10-0900.ics', failure: null, + }), + permit: async () => ({}), configure: async () => ({}), plan: async () => ({ item: null }), + sent: async () => true, completed: async () => ({}), failed: async () => true, + }, + driveSync: { + status: async () => ({ + on: MODE === 'configured', unmetered: true, destination: dest, + dir: dest && '__FOLDER__/bob-drive', sent: 31, lastCompleted: Date.now(), failure: null, + folders: [{ id: 't1', name: 'Documents' }, + { id: 't2', name: 'Scans_from_the_office_printer_with_a_very_long_name_2026' }], + }), + addFolder: async () => { throw new Error('Refused: media_folder'); }, + removeFolder: async () => ({}), configure: async () => ({}), plan: async () => ({ items: [] }), + sent: async () => true, completed: async () => ({}), failed: async () => true, + keepAlive: async () => true, + }, + whatsappSync: { + status: async () => ({ + on: MODE === 'configured', unmetered: true, destination: dest, options: { media: false }, + dir: dest && '__FOLDER__/bob-whatsapp', sent: 4, lastCompleted: Date.now(), failure: null, + folders: [{ id: 'wa', name: 'WhatsApp' }], + }), + chooseFolder: async () => ({}), forgetFolder: async () => ({}), configure: async () => ({}), + plan: async () => ({ items: [] }), sent: async () => true, manifest: async () => ({ item: null }), + manifestSent: async () => true, completed: async () => ({}), failed: async () => true, + keepAlive: async () => true, + }, messageSync: { status: async () => ({ permission: 'granted', on: MODE === 'configured', destination: dest, @@ -156,7 +188,7 @@ setTimeout(() => { .map((e) => `${e.tagName}.${e.className} ${Math.round(e.getBoundingClientRect().right)}`); out[f.id] = { vw, scrollW: d.documentElement.scrollWidth, wide: wide.slice(0, 6), - text: d.querySelector('#root').innerText.slice(0, 3000), + text: d.querySelector('#root').innerText.slice(0, 8000), err: d.documentElement.dataset.err || '', checked: [...d.querySelectorAll('#root input:checked')] .map((i) => i.closest('label').innerText.split('\\n')[0]), |