Sha256: eb238252f53da583690b6b5dc7534a253bb51791f3733524562f8a8bf8f1d1ce

Contents?: true

Size: 351 Bytes

Versions: 4

Compression:

Stored size: 351 Bytes

Contents

# frozen_string_literal: true
Capybara::SpecHelper.spec "#execute_script", :requires => [:js] do
  it "should execute the given script and return nothing" do
    @session.visit('/with_js')
    expect(@session.execute_script("$('#change').text('Funky Doodle')")).to be_nil
    expect(@session).to have_css('#change', :text => 'Funky Doodle')
  end
end

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
tdiary-5.0.1 vendor/bundle/gems/capybara-2.7.1/lib/capybara/spec/session/execute_script_spec.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/capybara-2.7.1/lib/capybara/spec/session/execute_script_spec.rb
capybara-2.7.1 lib/capybara/spec/session/execute_script_spec.rb
capybara-2.7.0 lib/capybara/spec/session/execute_script_spec.rb