Fix xpath expressions in timeline cukes

pull/913/head
Till Breuer 11 years ago
parent 8be6968d9f
commit 473ad00242
  1. 2
      features/step_definitions/timelines_comparison_steps.rb
  2. 2
      features/step_definitions/timelines_then_steps.rb

@ -34,7 +34,7 @@ def get_timeline_cell(name, valueName)
wpRow = get_timeline_row_by_name(name)
index = get_timelines_row_number_by_name(valueName)
wpRow.all(:xpath, "./td")[index]
wpRow.all('td')[index]
end
def get_timelines_row_number_by_name(name)

@ -77,7 +77,7 @@ Then(/^the project "(.*?)" should follow after "(.*?)"$/) do |project_name_one,
}
elements = find_lowest_containing_element project_name_one, ".tl-word-ellipsis"
elements[-1].should have_xpath("preceding::span[@class='tl-word-ellipsis']/descendant-or-self::*[text()='#{project_name_two}']")
elements[-1].should have_xpath("preceding::span[contains(@class,'tl-word-ellipsis')]/descendant-or-self::*[text()='#{project_name_two}']")
end
Then(/^I should see the project "(.*?)"$/) do |project_name|

Loading…
Cancel
Save