Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ydah opened this issue Mar 28, 2023 · 0 comments
Labels

Comments

@ydah
Copy link
Member

ydah commented Mar 28, 2023

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

# good
expect(page).to have_link('foo', class: 'some-cls')
@ydah ydah added the cop label Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant