Skip to content

fix: radio-group tests failing on Ember 4.4 - #211

Merged
dmcnamara-eng merged 1 commit into
GavinJoyce:masterfrom
phorest:fix/ci-ember-4-4-tests
Sep 25, 2026
Merged

dmcnamara-eng merged 1 commit into
GavinJoyce:masterfrom
phorest:fix/ci-ember-4-4-tests

Conversation

@tniezurawski

@tniezurawski tniezurawski commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

CI on master has been failing since #209 bumped the test-app to Ember 4.4 (failing run). All 21 failures are in radio-group-test.js.

Ember 4 removed the implicit this fallback in templates, so bare references in the test templates no longer resolve:

  • {{console.log}} → Attempted to resolve a value in a strict mode template, but that value was not in scope: console
  • {{onChange}}, {{setDisabled}}, {{isDisabled}}, {{value}} → TypeError: block.compile is not a function

Fix (test-only):

  • Replaced {{console.log}} with {{this.noop}}, set once in a beforeEach. dialog-test.js already uses a noop the same way.
  • Added this. to the remaining bare references.

Test plan

  • pnpm --filter test-app run test:ember: 406 tests, 0 failures (353 pass, 18 skip, 35 todo)
  • ESLint passes on the changed file
  • CI green

🤖 Generated with Claude Code

Ember 4 removed the implicit this-property fallback in templates, so
bare references like {{onChange}} and {{console.log}} no longer resolve.
Use explicit this.* references and a noop handler instead.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@tniezurawski
tniezurawski marked this pull request as ready for review September 25, 2026 10:32
@dmcnamara-eng
dmcnamara-eng self-requested a review September 25, 2026 10:50
@dmcnamara-eng
dmcnamara-eng merged commit 3781fd7 into GavinJoyce:master Sep 25, 2026
10 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.

2 participants