Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cypress/component/features/mobile/OfflineNotes.cy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,11 @@ describe('Refresh reconciles persisted cache before reopening notes', { retries:
]))
const mountApp = () => cy.mount(<SupabaseTestProvider supabase={client} user={user}><AppUnderTest /></SupabaseTestProvider>)
mountApp()
// The first HTTP response is deliberately still pending when local cards must appear.
cy.contains('[data-testid="note-card"]', 'Deleted one', { timeout: 2000 }).should('be.visible')
cy.contains('[data-testid="note-card"]', 'Deleted two').should('be.visible')
// Online startup keeps the skeleton until the first page arrives, even with cached notes.
cy.wrap(null).should(() => expect(listRequests).to.equal(1))
cy.wait('@initialCacheList')
cy.contains('[data-testid="note-card"]', 'Deleted one').should('be.visible')
cy.contains('[data-testid="note-card"]', 'Deleted two').should('be.visible')
cy.get('[data-cy="pull-to-refresh"]').filter(':visible')
.trigger('touchstart', { touches: [{ clientX: 80, clientY: 200 }] })
.trigger('touchmove', { touches: [{ clientX: 80, clientY: 350 }] })
Expand Down
6 changes: 6 additions & 0 deletions docs/ai/testing/feature-note-list-virtualization.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,9 @@ Validation on 2026-11-09:

Coverage is scoped to these loading transitions and adjacent grid interactions; line coverage was not measured. This fixture does not measure production network latency or verify a deployed build.

### Existing offline-refresh coverage

PR #216 CI found an older `OfflineNotes.cy.tsx` assertion requiring cached cards within two seconds while the initial online response was delayed for five seconds. That startup expectation conflicts with the approved loading skeleton. The test now waits for the initial response before checking the cached cards; its swipe refresh, server-missing warning, persisted contents, pending draft, account ownership, and reopen assertions remain intact.

Follow-up validation: all 11 cases in `NoteListInitialLoading.cy.tsx` and `OfflineNotes.cy.tsx` pass through Allure agent mode (exit 0; no findings, skips, or retries). ESLint for the changed test and `git diff --check` pass. This follow-up changes only test ordering and documentation; the application bundle and APK from merge commit `a86462d` are unchanged.

Loading