Capybara expect page to have button

by Jason Swett,
expect(page).to have_selector(:link_or_button, 'Button Text')

One thought on “Capybara expect page to have button

Leave a Reply

Your email address will not be published.