phoenix_test
phoenix_test copied to clipboard
click_button does not respect the name attribute of the button
I have a button like so:
<.button name="generate">
Generate
</.button>
In the test:
|> click_button("Generate")
The params sent to the live view, do not include the %{"generate" => ""}, and my logic related to it does not kick in.
@egze thanks for opening the issue! ~~Could you create a sample repo that reproduces the error?~~
EDIT: just saw the open PR (I was going through issues first 😄 ). Thanks for opening it! I'll go look at that.
This was fixed in #220