lucky_flow
lucky_flow copied to clipboard
Cannot use a checkbox with LuckyFlow.fill_form
Reference https://github.com/luckyframework/lucky_flow/issues/85 for the discussion
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
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?
The other value I can imagine being passed in is whatever the value is if the checkbox is checked