From 6ce3572b244d472aa532a7f1b415b511de433f23 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Mon, 13 Nov 2023 14:21:10 +1100 Subject: [PATCH] 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. --- spec/system/admin/configuration/taxonomies_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/system/admin/configuration/taxonomies_spec.rb b/spec/system/admin/configuration/taxonomies_spec.rb index b7fb9a2812..b5dea632fd 100644 --- a/spec/system/admin/configuration/taxonomies_spec.rb +++ b/spec/system/admin/configuration/taxonomies_spec.rb @@ -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!")