Skip to content

mock_pms: a show with an on-deck episode and a Continue Watching episode - #650

Merged
GLinnik21 merged 1 commit into
mainfrom
resume-point-sim-verification
Oct 13, 2026
Merged

GLinnik21 merged 1 commit into
mainfrom
resume-point-sim-verification

Conversation

@GLinnik21

Copy link
Copy Markdown
Collaborator

What

Follow-up to #647. mock_pms served no OnDeck metadata and its Continue Watching hub held only movies, so the simulator could not reach the behaviour #647 added. This adds an opt-in --resume-fixture flag (off by default; the generated library, every existing scene and every replay anchor are unchanged):

  • show 970001: 12 seasons (every third one 30 episodes, the rest 20), everything before S12E14 watched, S12E14 part-way through. Served as OnDeck.Metadata (a single object, as PMS does) only when the request carries includeOnDeck=1, and also the newest Continue Watching entry.
  • show 970002: 3 seasons of 10, nothing watched, no OnDeck.
  • 4 tests (ResumeFixture) in tests/test_mock_pms_library.py.

Verification of #647 in the macOS simulator (against this mock, no real account, no TV)

Looked at the captures, not just the logs:

  • on-deck show opens at the top with Resume focused and no vertical scroll; the S12 tab is selected and fully in view
  • after one Down the filmstrip is seated with Episode 14 ("38 min left", progress bar) at the left margin, not clipped
  • the no-on-deck show opens on season 1, strip at 0, Play focused
  • switching tabs S12 -> S11 -> S10 reseats the strip at Episode 1; back on S12 it reseats at Episode 14 with the same positions as the first open
  • Continue Watching: the first card is the S12E14 episode; OK opens the show on S12 with the hero focused and the page at the top; its hold menu offers Go to Episode and no Go to Show
  • OK on a deck episode of a show with no on-deck opens it on that season, no jump

Tests: python3 -m unittest discover -s tests -p test_mock_pms_library.py 62/62 OK; python3 tests/mock_pms.py --selftest ok.

Not verified

  • Simulator evidence only: no frame rate, no LG text rendering.
  • A one-frame tab flash during the opening transition is not excluded (settled captures show no jump).
  • Not exercised: Continue Watching = Play, movies and discovery shelves, scroll restore on a re-read (covered by unit tests in Show pages open at the resume point; Continue Watching opens the show #647 only).
  • No scene was added to tests/screenshots/scenes.json.

🤖 Generated with Claude Code

@GLinnik21
GLinnik21 merged commit 7bbec36 into main Oct 13, 2026
13 checks passed
@GLinnik21
GLinnik21 deleted the resume-point-sim-verification branch October 13, 2026 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant