Skip to content

Commit

Permalink
adapt spec setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ulferts committed Dec 10, 2024
1 parent edc2ec6 commit 4e1e337
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions spec/features/custom_fields/custom_fields_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4e1e337

Please sign in to comment.