Skip to content

page.should have_field fails #506

@tmaier

Description

@tmaier

All my checks for have_field fail.

For example, when I run

          page.should have_field "Manufacturer", with: "Siemens"
          page.should have_field "Product name", with: "Lufthaken"
          page.should have_field "Unit", with: "Stk."
          page.should have_checked_field "Accepted"

I get the following error message:

  Failure/Error: page.should have_field "Manufacturer", with: "Siemens"
  NoMethodError:
   undefined method `fields' for Capybara::Session:Class

The matcher have_checked_field works as expected.

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