Skip to content

Commit

Permalink
Accept confirmation dialog in specs
Browse files Browse the repository at this point in the history
  • Loading branch information
sfnelson committed Jan 17, 2024
1 parent b9f716d commit 26eab3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/system/katalyst/navigation/menu_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@

visit katalyst_navigation.edit_menu_path(menu)

click_on "Delete"
accept_confirm do
click_on "Delete"
end

expect(page).to have_no_text("Magic")
end
Expand Down

0 comments on commit 26eab3f

Please sign in to comment.