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

Support default values on textareas #83

Closed soundmonster closed 4 months ago

soundmonster commented 5 months ago

This PR adds support for default / pre-filled values in <textarea> form elements. The default put_form_data helper function can't work here, as <input> elements have the value in an attribute but <textarea> holds it as a text child.

soundmonster commented 4 months ago

Thank you for flagging this, I was involved in the discussion about deprecating DeepMerge but missed the moment the PR was merged. Will rebase in the PM tomorrow CEST.

soundmonster commented 4 months ago

@germsvel Please have another look:

germsvel commented 4 months ago

Thanks so much @soundmonster! 🥳