Add checkbox model binding integration tests#446
Merged
gunndabad merged 3 commits intomodelbindingtestsfrom Feb 7, 2026
Merged
Add checkbox model binding integration tests#446gunndabad merged 3 commits intomodelbindingtestsfrom
gunndabad merged 3 commits intomodelbindingtestsfrom
Conversation
Co-authored-by: gunndabad <2041280+gunndabad@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add tag helper model binding integration tests
Add checkbox model binding integration tests
Feb 1, 2026
7b0a272 to
46cf124
Compare
gunndabad
added a commit
that referenced
this pull request
Feb 7, 2026
* Add tag helper model binding integration tests for text input * Add password input tests to TagHelperModelBindingTests (#440) * Initial plan * Add password input tests to TagHelperModelBindingTests Co-authored-by: gunndabad <2041280+gunndabad@users.noreply.github.com> * Remove PauseAsync debug statement Co-authored-by: gunndabad <2041280+gunndabad@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: gunndabad <2041280+gunndabad@users.noreply.github.com> * Add date input tests to TagHelperModelBindingTests (#441) * Initial plan * Add date input tests to TagHelperModelBindingTests Co-authored-by: gunndabad <2041280+gunndabad@users.noreply.github.com> * Add separate test for overriden item names and IDs --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: gunndabad <2041280+gunndabad@users.noreply.github.com> Co-authored-by: James Gunn <james@gunn.io> * Add textarea model binding integration tests (#442) * Initial plan * Add textarea tests to TagHelperModelBindingTests Co-authored-by: gunndabad <2041280+gunndabad@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: gunndabad <2041280+gunndabad@users.noreply.github.com> * Add character count model binding integration tests (#443) * Initial plan * Add character count model binding integration tests Co-authored-by: gunndabad <2041280+gunndabad@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: gunndabad <2041280+gunndabad@users.noreply.github.com> * Add file upload model binding integration tests (#444) * Initial plan * Add file upload model binding integration tests Co-authored-by: gunndabad <2041280+gunndabad@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: gunndabad <2041280+gunndabad@users.noreply.github.com> * Add select tag helper model binding integration tests (#445) * Initial plan * Add select model binding integration tests Co-authored-by: gunndabad <2041280+gunndabad@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: gunndabad <2041280+gunndabad@users.noreply.github.com> * Add checkbox model binding integration tests (#446) * Initial plan * Add checkbox model binding integration test Co-authored-by: gunndabad <2041280+gunndabad@users.noreply.github.com> * Add test for overridden attributes --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: gunndabad <2041280+gunndabad@users.noreply.github.com> Co-authored-by: James Gunn <james@gunn.io> * Add radios model binding integration tests (#447) * Initial plan * Add radios model binding integration tests Co-authored-by: gunndabad <2041280+gunndabad@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: gunndabad <2041280+gunndabad@users.noreply.github.com> --------- Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: gunndabad <2041280+gunndabad@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds integration tests for checkbox tag helper model binding, similar to existing tests for text input, select, and other form elements.
Changes
Checkboxes_RendersCorrectlytest validating name/ID generation, checked state from model, and metadata binding (legend, hint, error message)CheckboxesTestsModelwithList<string>property, controller action, and Checkboxes.cshtml viewBug fixes discovered during implementation
ModelState.RawValue(null for errors) instead of falling back to model values:SetErrorMessage()validation to permit error messages inside open fieldsets (consistent withSetHint()behavior and GDS patterns)💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.