phoenix_test icon indicating copy to clipboard operation
phoenix_test copied to clipboard

click_button does not respect the name attribute of the button

Open egze opened this issue 7 months ago • 1 comments

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 avatar May 24 '25 18:05 egze

@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.

germsvel avatar May 26 '25 09:05 germsvel

This was fixed in #220

germsvel avatar Jun 13 '25 19:06 germsvel