Skip to content

Commit

Permalink
Harden ingredient groups spec
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tvdeyen committed Mar 25, 2024
1 parent 51bb02e commit b0e9e7e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion spec/features/admin/edit_elements_feature_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b0e9e7e

Please sign in to comment.