From 4e1e337b43ec189ad2192c8826da57c1f929e743 Mon Sep 17 00:00:00 2001 From: ulferts Date: Tue, 10 Dec 2024 22:15:12 +0100 Subject: [PATCH] adapt spec setup --- spec/features/custom_fields/custom_fields_spec.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/spec/features/custom_fields/custom_fields_spec.rb b/spec/features/custom_fields/custom_fields_spec.rb index 8493345e9cc4..d8de98c9fd17 100644 --- a/spec/features/custom_fields/custom_fields_spec.rb +++ b/spec/features/custom_fields/custom_fields_spec.rb @@ -205,16 +205,11 @@ def expect_page_not_to_have_texts(*text) end before do - cf_page.visit! - wait_for_reload - - click_on custom_field.name - wait_for_reload + visit edit_custom_field_path(custom_field) end it "adds new options" do page.find_test_selector("add-custom-option").click - wait_for_reload expect(page).to have_css(".custom-option-row", count: 5) within all(".custom-option-row").last do