Stabilise spec with sleep

I didn't look into what's going wrong here. A sleep is not ideal but
better than a retry.

That page needs a rewrite anyway and therefore I don't want to invest
more work now.
This commit is contained in:
Maikel Linke
2023-11-13 14:21:10 +11:00
parent b2c6551c26
commit 6ce3572b24

View File

@@ -44,11 +44,12 @@ describe "Taxonomies" do
end
context "edit" do
it "should allow an admin to update an existing taxonomy", retry: 3 do
it "should allow an admin to update an existing taxonomy" do
create(:taxonomy)
click_link "Taxonomies"
within_row(1) { find(".icon-edit").click }
fill_in "taxonomy_name", with: "sports 99"
sleep 1
click_button "Update"
expect(page).to have_current_path spree.admin_taxonomies_path
expect(page).to have_content("successfully updated!")