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
181 stars 23 forks source link

Test nested forms in LiveView #26

Closed germsvel closed 9 months ago

germsvel commented 9 months ago

Fixes #17 Closes #25

What changed?

Commit 180dc0d updated our Live implementation of form field validations. That fixed an issue that was happening in nested forms in Live that was first documented in https://github.com/germsvel/phoenix_test/issues/17.

A helpful PR https://github.com/germsvel/phoenix_test/pull/25 created a failing test that reproduced the error, and we include a slightly modified version of the test here.

I thought this branch would fix the issue, but the issue was completely resolved by the work in the previously mentioned commit. So, this commit only introduces the additional test.