Sha256: 552a190f967630b4c9ed963a559cab81388891073d21ce1a7fb87e073f9f49a8

Contents?: true

Size: 1.26 KB

Versions: 11

Compression:

Stored size: 1.26 KB

Contents

When(/^I get the first item from the ordered list$/) do
  @element = @page.ol_id_element[0]
end

Then(/^the list item's text should be "(.*?)"$/) do |text|
  expect(@element.text).to eql text
end

When(/^I locate the ordered list by "(.*?)"$/) do |how|
  @list = @page.send "ol_#{how}_element"
end

When(/^I get the first item from the list$/) do
  @element = @list[0]
end

Then(/^the list should contain (\d+) items$/) do |items|
  expect(@list.items).to eql items.to_i
end

Then(/^each item should contain "(.*?)"$/) do |text|
  @list.each do |item|
    expect(item.text).to include text
  end
end

When(/^I search for the ordered list by "(.*?)" and "(.*?)"$/) do |param1, param2|
  @list = @page.send "ol_#{param1}_#{param2}_element"
end

Then(/^the list items text should be "(.*?)"$/) do |expected_text|
  expect(@element.text).to eql expected_text
end

When(/^I retrieve a ordered list element$/) do
  @element = @page.ol_id_element
end

When(/^I search for the ordered list while the script is executing$/) do
  @list = @page.ordered_list_element(:id => 'ol_id')
end

Then(/^I should see that the ordered list exists$/) do
  expect(@page.ol_id?).to be true
end

Then(/^the text for the ordered list should contain "([^"]*)"$/) do |text|
  expect(@page.send("ol_id")).to include text
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
druid-s-1.0.0 features/step_definations/ordered_list_steps.rb
druid-ts-1.2.6 features/step_definations/ordered_list_steps.rb
druid-ts-1.2.5 features/step_definations/ordered_list_steps.rb
druid-ts-1.2.4 features/step_definations/ordered_list_steps.rb
druid-ts-1.2.3 features/step_definations/ordered_list_steps.rb
druid-ts-1.2.2 features/step_definations/ordered_list_steps.rb
druid-ts-1.2.1 features/step_definations/ordered_list_steps.rb
druid-ts-1.2.0 features/step_definations/ordered_list_steps.rb
druid-ts-1.1.8 features/step_definations/ordered_list_steps.rb
druid-ts-1.1.7 features/step_definations/ordered_list_steps.rb
druid-ts-1.1.6 features/step_definations/ordered_list_steps.rb