From b0e9e7eb6f6d29de20047a4c9e4d78b5ec9ac415 Mon Sep 17 00:00:00 2001 From: Thomas von Deyen Date: Sat, 23 Mar 2024 21:55:10 +0100 Subject: [PATCH] Harden ingredient groups spec The details are sometimes not collapes during test runs. Since the initial state does not matter in this test we can just remove the check. --- spec/features/admin/edit_elements_feature_spec.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/spec/features/admin/edit_elements_feature_spec.rb b/spec/features/admin/edit_elements_feature_spec.rb index cfe54a5825..097bae7c81 100644 --- a/spec/features/admin/edit_elements_feature_spec.rb +++ b/spec/features/admin/edit_elements_feature_spec.rb @@ -156,7 +156,6 @@ before { visit alchemy.edit_admin_page_path(element.page) } scenario "expanded ingredient groups persist between visits", :js do - expect(page).not_to have_selector("#element_#{element.id}_ingredient_group_details", visible: true) page.find("details#element_#{element.id}_ingredient_group_details", text: "Details").click expect(page).to have_selector("#element_#{element.id}_ingredient_group_details", visible: true) visit alchemy.edit_admin_page_path(element.page)