Relax the assertion and dont check row number so that it passes even if order of elements is not the same

This commit is contained in:
Luis Ramos
2020-06-27 15:54:58 +01:00
parent 5e3d7be545
commit 10b8c2b789

View File

@@ -14,8 +14,10 @@ describe "Taxonomies" do
create(:taxonomy, name: 'Brand')
create(:taxonomy, name: 'Categories')
click_link "Taxonomies"
within_row(1) { expect(page).to have_content("Brand") }
within_row(2) { expect(page).to have_content("Categories") }
within("table.index tbody") do
expect(page).to have_content("Brand")
expect(page).to have_content("Categories")
end
end
end