Use Capybara's `assert_selector` to the `maximum`!

Capybara’s assert_selector has some powerful options, here’s a few:

assert_selector 'h1', count: 1
assert_selector 'h2', minimum: 1
assert_selector 'option', maximum: 10
assert_selector 'option', between: 20..30

Click here for documentation