Sha256: 358a425828ab4641913a4bc09153bce89600d52c13ef48b57856c4610b20dacc
Contents?: true
Size: 1.02 KB
Versions: 1
Compression:
Stored size: 1.02 KB
Contents
When(/^I retrieve a table element$/) do @element = @page.table_id_table end When(/^I retrieve a table element by "(.*?)"$/) do |how| @element = @page.send "table_#{how}_table".to_sym end Then(/^the data for row "(.*?)" should be "(.*?)" and "(.*?)"$/) do |row, col1, col2| row = @element[row.to_i - 1] expect(row[0].text).to eql col1 expect(row[1].text).to eql col2 end Then(/^the table should have "(.*?)" rows$/) do |number| expect(@element.rows).to eql number.to_i end Then(/^each row should contain "(.*?)"$/) do |text| @element.each do |row| expect(row.text).to include text end end Then(/^row "(.*?)" should have "(.*?)" columns$/) do |row, cols| expect(@element[row.to_i - 1].columns).to eql cols.to_i end Then(/^each column should contain "(.*?)"$/) do |text| row = @element[0] row.each do |column| expect(column.text).to include text end end When(/^I retrieve a table element bys "(.*?)" and "(.*?)"$/) do |param1, param2| @element = @page.send "table_#{param1}_#{param2}_table".to_sym end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
druid-ts-0.0.1 | features/step_definations/table_steps.rb |