Skip to content

test(ui): repoint script_overview.feature off prod "mc" course - #74457

Merged
davidsbailey merged 1 commit into
stagingfrom
decouple-script-overview-from-mc
Aug 7, 2026
Merged

test(ui): repoint script_overview.feature off prod "mc" course#74457
davidsbailey merged 1 commit into
stagingfrom
decouple-script-overview-from-mc

Conversation

@davidsbailey

@davidsbailey davidsbailey commented Aug 6, 2026

Copy link
Copy Markdown
Member

The "Unit overview contents" scenario loaded /courses/mc/units/1 to check how the unit overview's summary table names a lesson in a unit that has exactly one lesson. UI tests must not depend on production curriculum per partitioned curriculum data proposal, so point it at ui-test-maze, which is also a single-lesson unit. The expected cell text becomes "1. Maze Puzzles".

While repointing, correct the comment. It claimed the assertion covered Lesson#localized_title's "only one lesson, so use the unit name" override, but the unit overview renders lesson.name and never localized_title:

let lessonTitle = lesson.name;
if (lesson.lessonNumber && !unitHasUnnumberedLessons) {
lessonTitle = lesson.lessonNumber + '. ' + lessonTitle;

Testing story

  • UI-test-only change. The modified UI test runs and passes in drone.

…urse

"Unit overview contents" loaded /courses/mc/units/1 to check how the unit
overview's summary table names a lesson in a unit that has exactly one
lesson. UI tests must not depend on production curriculum, so point it at
ui-test-maze, which is also a single-lesson unit. The expected cell text
becomes "1. Maze Puzzles".

While repointing, correct the comment. It claimed the assertion covered
Lesson#localized_title's "only one lesson, so use the unit name" override,
but the unit overview renders lesson.name (SummaryProgressRow.jsx:49) and
never localized_title. Against mc the difference was invisible in the
asserted string: mc's lesson is named "Minecraft Hour of Code" while its
unit title is "Minecraft Adventurer", so the assertion has in fact been
checking the lesson's own name.

Verified with a local chromedriver against test-studio.code.org: the
unmodified feature passed (7 scenarios), and so does the modified one
(7 scenarios, 73 steps).

mc stays in UI_TEST_SCRIPTS/courses_ui_tests for now:
platform/login_redirect.feature (and its Playwright port) still needs a
cached unit, and two @contentful_key certificate features still use mc.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@davidsbailey
davidsbailey marked this pull request as ready for review August 6, 2026 22:57
@davidsbailey
davidsbailey merged commit cef4e90 into staging Aug 7, 2026
2 checks passed
@davidsbailey
davidsbailey deleted the decouple-script-overview-from-mc branch August 7, 2026 02:34
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.

2 participants