Skip to content

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

Closed
dmcnamara-eng wants to merge 1 commit into
masterfrom
fix/ci-ember-4-4-tests
Closed

dmcnamara-eng wants to merge 1 commit into
masterfrom
fix/ci-ember-4-4-tests

Conversation

@dmcnamara-eng

Copy link
Copy Markdown
Collaborator

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 <noreply@anthropic.com>
@dmcnamara-eng dmcnamara-eng self-assigned this Sep 25, 2026
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