mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
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:
@@ -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!")
|
||||
|
||||
Reference in New Issue
Block a user