Fix `hidden_field_tag` Nested Attributes Format For Rails 7 Upgrade and Add Test Coverage by aaronskiba · Pull Request #3479 · DMPRoadmap/roadmap

added 2 commits

February 13, 2025 11:46
This adds test coverage for a previously undetected Rails 7 breaking change
affecting nested attribute params structure in `hidden_field_tag`
This change addresses a breaking issue introduced by the Rails 7 upgrade, where the hidden_field_tag parameters for nested attributes were not being processed correctly. The parameter structure has been updated to match Rails 7's expected format, ensuring proper handling of nested associations.

@aaronskiba

@aaronskiba

`execute_script('arguments[0].click();', modal_close_button)` works locally, however, the modal seems to be failing to close when the test is run as a GitHub Action.
  -  Strangely `execute_script('arguments[0].click();', modal_close_button)` works as a GitHub Action when executed for the 'Modal search opens and closes and allows user to search, select and remove items' test within this same file.

johnpinto1