Skip to content

Cop idea: Prefer to validate with a have_* matcher over retrieve the element with find_* and validate #35

@ydah

Description

@ydah
# bad
expect(page.find_link('foo')[:class]).to eq 'some-cls'

# good
expect(page).to have_link('foo', class: 'some-cls')

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions