Open boris-petrov opened 2 months ago
Other attributes should be handled too - like type
:
expect(page).to have_no_css('input[type="checkbox"]')
Must be:
expect(page).to have_no_field(type: 'checkbox')
Also, the same is true for finders:
find('input[placeholder="City"]')
Should be marked as an error as it can be replaced with:
find_field(placeholder: 'City')
This is not caught but can be replaced to: