Skip to content

i-click fails with html entity present... #62

@cjaoude

Description

@cjaoude

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>&nbsp;sign-in
</button>

// this fails, variations...
    &nbsp;<span class="fa fa-user"></span>sign-in
    <span class="fa fa-user">&nbsp;</span>sign-in

//...and this doesn't...        
    <span class="fa fa-user"></span>sign-in
    <span class="fa fa-user"></span>&nbsp; sign-in
    &nbsp; <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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions