Skip to content

Files

Latest commit

 

History

History
27 lines (19 loc) · 514 Bytes

Capybara-SpecificActions.md

File metadata and controls

27 lines (19 loc) · 514 Bytes

Pattern: Missing use of Capybara-specific action

Issue: -

Description

Checks for there is a more specific actions offered by Capybara.

Examples

# bad
find('a').click
find('button.cls').click
find('a', exact_text: 'foo').click
find('div button').click

# good
click_link
click_button(class: 'cls')
click_link(exact_text: 'foo')
find('div').click_button

Further Reading