Closed stefanchrobot closed 1 year ago
This would be a nice feature!
I think inputs: true
is better. Since we need to consider the select
and radio
tags, maybe form_values: true
could be a better name. WDYT?
A PR is welcome :) Please let me know if you need guidance here.
Cool, let me write some more tests that need checkboxes and radios and I'll come back with a PR. form_values: true
sounds best.
Can I work on this?
Sure, feel free to do so! I wasn't able to find time to get back to this. Some comments:
Floki.text
I'd be more interested in the <label>
element than the value of <input>
,
Feature goal
Include the values of
<input ...>
elements inFloki.text/2
.This would be helpful for making assertions on pages that have edit forms:
This could be implemented as an option for
Floki.text/2
:or