featurist / browser-monkey

Reliable DOM testing
https://browsermonkey.org
53 stars 6 forks source link

text option for a button input should use its value #33

Open adiel opened 8 years ago

adiel commented 8 years ago
<button id="one" value="1">one</button>
<input id="two" type="button" value="two">

should mean all these are true:

find('button#one').shouldHave({text: 'one');
find('button#one').shouldHave({value: 1});
find('input#two').shouldHave({text: 'two'});
find('input#two').shouldHave({value: 'two'});
daniel-baptista-travcorp commented 8 years ago

view on requirebin