Sha256: 583a06f45996554fe4cb4d9d5047d8b53fb688e66e7db5af19df79fffd585861
Contents?: true
Size: 993 Bytes
Versions: 1
Compression:
Stored size: 993 Bytes
Contents
# frozen_string_literal: true Capybara::SpecHelper.spec '#refresh' do it "reload the page" do @session.visit('/form') expect(@session).to have_select('form_locale', selected: 'English') @session.select('Swedish', from: 'form_locale') expect(@session).to have_select('form_locale', selected: 'Swedish') @session.refresh expect(@session).to have_select('form_locale', selected: 'English') end it "raises any errors caught inside the server", requires: [:server] do quietly { @session.visit("/error") } expect do @session.refresh end.to raise_error(TestApp::TestAppError) end it "it reposts" do skip "Firefox insists on prompting without providing a way to suppress" if marionette?(@session) @session.visit('/form') @session.select('Sweden', from: 'form_region') @session.click_button('awesome') expect do @session.refresh sleep 2 end.to change { extract_results(@session)['post_count'] }.by(1) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capybara-3.0.0.rc1 | lib/capybara/spec/session/refresh_spec.rb |