Sha256: 62862e703a7a251175b6fa8a19cecb6036d3d64076cfee68d418d4e3c1847d07
Contents?: true
Size: 976 Bytes
Versions: 3
Compression:
Stored size: 976 Bytes
Contents
require 'spec_helper' RSpec.describe "Dynamically added inputs", :type => :request do context "when input is on a modal dialog", js: true do let!(:schedule) { FactoryGirl.create(:schedule) } it "performs no differently" do visit schedules_path find("body").click click_link("Edit") sleep 2 find("#birthday").click page.should have_selector("#ui-datepicker-div", visible: true) end describe "both static and dynamic inputs" do context "...and there's a picker in the document behind the modal" do before do visit edit_schedule_with_index_path(schedule) find("body").click end it "has no adverse effect on the non-dynamically added fields" do click_link "Edit" #open modal (which kicks off call to Window.bindHDPickers sleep 2 click_button("Close") #close modal sleep 1 find("#birthday").click page.should have_selector("#ui-datepicker-div", visible: true) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hot_date_rails-1.5.7 | spec/requests/modal_dialog_spec.rb |
hot_date_rails-1.5.6 | spec/requests/modal_dialog_spec.rb |
hot_date_rails-1.5.4 | spec/requests/modal_dialog_spec.rb |