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
170 stars 22 forks source link

Fix: Preserve '?' in checkbox name #76

Closed ftes closed 5 months ago

ftes commented 5 months ago

Given a "static" or "live" form

<input type="checkbox" name="subscribe?" value="on" />

When I check/2 the box and submit the form

Then (actual behaviour) this is submitted

form_data = %{"subscribe" => "on"}

Instead of (expected behaviour)

form_data = %{"subscribe?" => "on"}