module-webdriver
module-webdriver copied to clipboard
i-click fails with html entity present...
Seems like this is an aggressive regex type deal, but having an html entity inlined inside a button causes an acceptance test fail. Doesn't seem to matter what the entity is. It seems a blank space is needed to cause the entity to be ignored.
// $i->click('sign-in');
// this fails...
<button type="submit">
<span class="fa fa-user"></span> sign-in
</button>
// this fails, variations...
<span class="fa fa-user"></span>sign-in
<span class="fa fa-user"> </span>sign-in
//...and this doesn't...
<span class="fa fa-user"></span>sign-in
<span class="fa fa-user"></span> sign-in
<span class="fa fa-user"></span>sign-in
No biggie, but was a bit of a surprise trying to figure out why the test failed.