Skip to content

test(journeys): Course Presentation, as its script runs it (#314) - #321

Merged
alekswebnet merged 2 commits into
mainfrom
test/course-presentation-journeys
Dec 1, 2026
Merged

alekswebnet merged 2 commits into
mainfrom
test/course-presentation-journeys

Conversation

@alekswebnet

@alekswebnet alekswebnet commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Part of #314: Course Presentation 1.27's learner journeys, written after reading its script (src/scripts/cp.js, summary-slide.js and navigation-line.js at 1.27.28, the pack's).

What the script does, and the case for each
A four-slide deck: a text, then Multiple Choice (1 point), True/False (1) and Fill in the Blanks (2).

  • The total is the sum of every slide's tasks, sent as completed from the summary slide, with no success. The summary lists each slide with a task and its score. Each question sends its own answered with the deck as its parent and its slide number, and the progress bar marks each slide whose task has an answer.
  • It reports again each time the summary slide is drawn, with the score as it then stands. The case goes back by the summary's own link, retries a question, and comes back.
  • Show solutions enters solution mode: back to the first slide with a task, right answers marked, and "Exit solution mode" in the footer. Drawing the summary again in solution mode sends nothing. The case checks this after a later statement has arrived.
  • Retry clears every answer and goes back to slide 1. The next summary reports anew.
  • With reporting on, moving to the summary first asks "Submit your answers". Cancel stays on the last slide and reports nothing; Confirm shows the summary and reports.
  • With the summary slide hidden (hideSummarySlide), the deck reports no total at all: only each question's answered, so the element raises no finished.
  • A deck with no task has no summary slide either, and reports no result: only progressed, with the slide reached.
  • The author's overrides (retryButton and showSolutionButton off, both summary buttons off) leave no Retry or Show solution on any question, each looked at once it is checked, and no button on the summary.
  • Resume brings the learner back at the slide reached, with the answers before it kept, and the result counts them.

Moving between slides waits until the slide is on screen and still, since the deck ignores a press while a slide moves (250 ms). The resume case waits for the save that holds its last click, as H5P saves three seconds after a slide move.

Tests

Release: none.

The sum of every slide's tasks, reported each time the summary slide is drawn and never where
the author hid it; Show solutions, Retry, the confirmation with reporting on, the author's
overrides, and resume at the slide reached. 8 cases, in all three engines.
…ve checked (#314)

A self-review of the Course Presentation journeys:
- a deck with no task has no summary slide and reports no result, the commonest deck of all
- the overrides case looks at each of the three questions, not the last alone
- Cancel on the reporting dialog reports nothing
- the resume case waits for the save that holds its last click
- the summary's rows are read from its list items
@alekswebnet
alekswebnet merged commit c028555 into main Dec 1, 2026
9 checks passed
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