lucky_flow icon indicating copy to clipboard operation
lucky_flow copied to clipboard

Cannot use a checkbox with LuckyFlow.fill_form

Open matthewmcgarvey opened this issue 5 years ago • 3 comments
trafficstars

Reference https://github.com/luckyframework/lucky_flow/issues/85 for the discussion

matthewmcgarvey avatar Nov 19 '20 23:11 matthewmcgarvey

A roadblock I ran into while trying to complete this task is that fill_form is called with the attribute and a value while checkboxes are selected by clicking on them. So what kind of value should be supplied? I was thinking Bool so that true would check it and false would uncheck but I don't believe there's a way to type-check the values

matthewmcgarvey avatar Dec 31 '20 04:12 matthewmcgarvey

I haven't looked at the code at all, so this may not be possible, but what if the value was an Enum, and it was either :checked or :unchecked?

jwoertink avatar Dec 31 '20 16:12 jwoertink

The other value I can imagine being passed in is whatever the value is if the checkbox is checked

matthewmcgarvey avatar Dec 31 '20 16:12 matthewmcgarvey