germsvel / phoenix_test

PhoenixTest provides a unified way of writing feature tests -- regardless of whether you're testing LiveView pages or static (non-LiveView) pages.
https://hex.pm/packages/phoenix_test
MIT License
178 stars 23 forks source link

🛠️ Fix active form vs form data loading #134

Closed germsvel closed 1 month ago

germsvel commented 1 month ago

Resolves #105

What changed?

At some point, a page's default data (parsed in Form) would become part of the ActiveForm form data.

That meant that if the data on the page changed, the stuff that had been filled in on a previous form action would prevail because it was acting as part of the "active form" data.

This is the way this should work (done in this commit):

Test notes

We move common form helper behavior tests out of fill_in and into a shared tests group.