Skip to content

LiveViewTest: treat missing form id as error if form has phx-change#4128

Merged
SteffenDE merged 6 commits intomainfrom
sd-warn-form-missing-id
Mar 18, 2026
Merged

LiveViewTest: treat missing form id as error if form has phx-change#4128
SteffenDE merged 6 commits intomainfrom
sd-warn-form-missing-id

Conversation

@SteffenDE
Copy link
Copy Markdown
Collaborator

@SteffenDE SteffenDE commented Jan 23, 2026

This prevents users from accidentally disabling form recovery because they forgot to set an ID on a form.

Closes #4124.

I also added a new way to have more granular control over reported test errors / warnings.

This prevents users from accidentally disabling form recovery
because they forgot to set an ID on a form.

Closes #4124.
@SteffenDE SteffenDE force-pushed the sd-warn-form-missing-id branch from 8c56bcf to 12e3d50 Compare March 17, 2026 11:27
@SteffenDE SteffenDE marked this pull request as ready for review March 17, 2026 11:27
@SteffenDE SteffenDE requested a review from josevalim March 17, 2026 11:38
Comment thread lib/phoenix_live_view/test/live_view_test.ex Outdated
@SteffenDE SteffenDE merged commit e80635f into main Mar 18, 2026
16 checks passed
@SteffenDE SteffenDE deleted the sd-warn-form-missing-id branch March 18, 2026 10:25
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