Sha256: 97e1bebcbe14ecb375bf4d8c9753d9a5810bb8930ca3cd88b9a682e22e6e41cd
Contents?: true
Size: 1.05 KB
Versions: 2
Compression:
Stored size: 1.05 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
druid-ts-1.1.1 | features/step_definations/ordered_list_steps.rb |
druid-ts-1.1.0 | features/step_definations/ordered_list_steps.rb |