Skip to content

assert_has/refute_has by 'label' incorrect if no 'value' given #285

@ftes

Description

@ftes

Given

<form action="/">
  <label>
    Hobbit <input type="text" name="user" value="Frodo" />
  </label>
</form

I expect

|> refute_has("input", label: "Unknown")

to succeed, but it fails with

     Expected not to find any elements with selector "input" with label "Unknown"

     But found 1:

     <input type="text" name="user" value="Frodo"/>

Failing tests see #286

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions