/** * R-E2E series — Fase 2b.1 (dual-browser-context Realtime) * * Exercises the end-to-end Realtime sync path through the actual SvelteKit app. * Skipped until the app wires up the Realtime subscription in `/lists/[id]`. */ import { test } from '@playwright/test'; test.describe.skip('Realtime sync between two user sessions (pending UI)', () => { test('R-E-01: Ana adds an item → Borja sees it without refreshing', async () => { // Given two browser contexts: Ana and Borja, both on /lists/[id] // When Ana adds "Milk" via her sticky-form // Then Borja's item list shows "Milk" within 2s (no page reload) }); test('R-E-02: Presence avatar — Borja sees Ana\'s avatar when she joins', async () => { // Given Borja is on /lists/[id]/session // When Ana opens the same list in her own browser // Then Borja's presence indicator shows Ana's avatar // When Ana leaves // Then Ana's avatar disappears from Borja's indicator within 3s }); });