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