Sha256: 3a6700208f93fffbfa097a48d5496f409f05f7fb21223793bf39ef15e01f280a
Contents?: true
Size: 1.17 KB
Versions: 1
Compression:
Stored size: 1.17 KB
Contents
When /^(?:|I )click a "([^"]*)" component slot$/ do |slot_name| @_slot_type = slot_name.downcase within('ol#slot-list') do click_link "#{slot_name} Slot" end end When /^(?:|I )select the "([^\"]+)" component$/ do |component_name| within "#fancybox-inner" do select component_name, :from => 'Select the type of component' end end When /^(?:|I )fill in the following within the component:$/ do |fields| within "#fancybox-inner" do fields.rows_hash.each do |name, value| When %{I fill in "#{name}" with "#{value}"} end end end Then /^I add some images from the asset library$/ do 5.times do |i| Factory(:asset, :title => "Image #{i}") end page.find(:css, 'span.add-multi-asset').click 3.times do |i| within "#browser-list li:nth(#{i + 1})" do click_link "Add" end end page.find(:css, 'li.action a').click end When /^(?:|I )press "([^"]*)" within the component$/ do |button| within "#fancybox-inner" do click_button(button) end sleep 1 end When /^(?:|I )select an image from the asset library$/ do asset = Factory(:asset, :title => "My Image") page.find(:css, 'span.select-file').click click_link "Add" sleep 5 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
noodall-0.0.4 | lib/noodall/templates/features/step_definitions/component_steps.rb |