Sha256: 8c99c86cdcb02b0959266460d3e58c935a3fddc38408ee0fd009aa38ae0aa444

Contents?: true

Size: 601 Bytes

Versions: 41

Compression:

Stored size: 601 Bytes

Contents

module BootstrapBuilders::CapybaraSpecHelpers
  def set_bb_date_input(css_identifier, time)
    element = find(css_identifier)

    within element do
      find(".bb-date-picker-input-year", visible: false).set(time.year)
      find(".bb-date-picker-input-month", visible: false).set(time.month)
      find(".bb-date-picker-input-day", visible: false).set(time.day)

      if element[:class].include?("bb_date_time_picker")
        find(".bb-date-picker-input-hour", visible: false).set(time.hour)
        find(".bb-date-picker-input-min", visible: false).set(time.minute)
      end
    end
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
bootstrap_builders-1.0.4 lib/bootstrap_builders/capybara_spec_helpers.rb
bootstrap_builders-0.0.63 lib/bootstrap_builders/capybara_spec_helpers.rb
bootstrap_builders-1.0.3 lib/bootstrap_builders/capybara_spec_helpers.rb
bootstrap_builders-1.0.2 lib/bootstrap_builders/capybara_spec_helpers.rb
bootstrap_builders-1.0.1 lib/bootstrap_builders/capybara_spec_helpers.rb
bootstrap_builders-1.0.0 lib/bootstrap_builders/capybara_spec_helpers.rb
bootstrap_builders-0.0.62 lib/bootstrap_builders/capybara_spec_helpers.rb
bootstrap_builders-0.0.61 lib/bootstrap_builders/capybara_spec_helpers.rb
bootstrap_builders-0.0.60 lib/bootstrap_builders/capybara_spec_helpers.rb
bootstrap_builders-0.0.59 lib/bootstrap_builders/capybara_spec_helpers.rb
bootstrap_builders-0.0.58 lib/bootstrap_builders/capybara_spec_helpers.rb
bootstrap_builders-0.0.57 lib/bootstrap_builders/capybara_spec_helpers.rb
bootstrap_builders-0.0.56 lib/bootstrap_builders/capybara_spec_helpers.rb
bootstrap_builders-0.0.55 lib/bootstrap_builders/capybara_spec_helpers.rb
bootstrap_builders-0.0.54 lib/bootstrap_builders/capybara_spec_helpers.rb
bootstrap_builders-0.0.53 lib/bootstrap_builders/capybara_spec_helpers.rb
bootstrap_builders-0.0.52 lib/bootstrap_builders/capybara_spec_helpers.rb
bootstrap_builders-0.0.51 lib/bootstrap_builders/capybara_spec_helpers.rb
bootstrap_builders-0.0.50 lib/bootstrap_builders/capybara_spec_helpers.rb
bootstrap_builders-0.0.49 lib/bootstrap_builders/capybara_spec_helpers.rb