Commit fa5c9f83 authored by Simon Knox's avatar Simon Knox

Fix table selector in flaky spec

Make table selector just select table
Select rows when we want rows
parent 062dcdf9
......@@ -14,7 +14,7 @@ RSpec.shared_examples 'packages list' do |check_project_name: false|
end
def package_table_row(index)
page.all(packages_table_selector)[index].text
page.all("#{packages_table_selector} tbody tr")[index].text
end
end
......@@ -46,5 +46,5 @@ RSpec.shared_examples 'when there are no packages' do
end
def packages_table_selector
'[data-qa-selector="packages-table"] tbody tr'
'[data-qa-selector="packages-table"]'
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment