Module: CapybaraJsHelpers::SweetAlertHelper

Defined in:
lib/capybara_js_helpers/sweet_alert_helper.rb

Instance Method Summary collapse

Instance Method Details

#sweet_alert_okObject



3
4
5
6
7
8
# File 'lib/capybara_js_helpers/sweet_alert_helper.rb', line 3

def sweet_alert_ok
  within ".sweet-alert.visible" do
    expect(page).to have_css('.sweet-alert button.confirm', :count => 1)
    find('button.confirm').trigger("click")
  end
end