Skip to content

Test coverage: PdfReaderScreenKt (Phase 7 split from #521) #606

Closed

Description

@libravault-xyz

Summary

Split out of #521 (see comment) — one of the three remaining docs/TEST_COVERAGE_PRD.md Phase 7 targets, given its own issue so it isn't force-fit into a shared PR with unrelated screens.

Scope

PdfReaderScreenKt (146 missed, 0%) — not started.

#521's investigation already checked this file's ViewModel shape: it takes a single viewModel: PdfReaderViewModel = hiltViewModel(), no sibling sharing, so it does not have the ReaderScreenKt-style sharing problem (docs/TEST_COVERAGE_PRD.md §1b). What's untested here instead is whether Roborazzi/Robolectric can even render this screen's content: it's a heavy native-PdfRenderer/bitmap/coroutine state machine, and Robolectric's PdfRenderer support (if any) needs to be checked before assuming screenshot baselines are feasible the way they were for SettingsScreenKt/CreateVaultScreenKt.

Before starting: confirm whether Robolectric can drive PdfRenderer (or whether the PDF-rendering path needs to be faked/stubbed for tests) — this determines whether the usual wrapper + pure-content + Roborazzi-baseline template can apply as-is, or whether the PDF bitmap pipeline needs isolation first.

See docs/TEST_COVERAGE_PRD.md §1b and §6 for the full history of what's been tried on the other Phase 7 targets and why.

Activity

  1. added
    enhancement
    status:triage
    on Aug 25, 2026
  2. added
    status:ready-for-dev
    status:in-progress
    on Aug 25, 2026
  3. libravault-xyz commented on Aug 25, 2026

    @libravault-xyz
    CollaboratorAuthor

    Resolved via PR #610 (merged 2faa05b), including a follow-up fix for #613 (0-page PDF still crashed in default paginated mode after the initial fix). See docs/TEST_COVERAGE_PRD.md §1d for the full investigation writeup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementstatus:in-progressstatus:ready-for-devstatus:triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions