diff --git a/features/step_definitions/timelines_comparison_steps.rb b/features/step_definitions/timelines_comparison_steps.rb index 4c8595d885..4747e6bced 100644 --- a/features/step_definitions/timelines_comparison_steps.rb +++ b/features/step_definitions/timelines_comparison_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) diff --git a/features/step_definitions/timelines_then_steps.rb b/features/step_definitions/timelines_then_steps.rb index 637a738a7d..c76eb67cc7 100644 --- a/features/step_definitions/timelines_then_steps.rb +++ b/features/step_definitions/timelines_then_steps.rb @@ -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|