Compare commits

...

2 commits

Author SHA1 Message Date
f2f5161f3f
Fix warning message
All checks were successful
Ruby CI / test (pull_request) Successful in 19s
2025-06-16 22:34:13 -04:00
b7efc4c18b
Fix test 2025-06-16 22:30:54 -04:00
3 changed files with 4 additions and 2 deletions

View file

@ -37,7 +37,7 @@ class CreditCardBillsTest < ApplicationSystemTestCase
test "should destroy Credit card bill" do test "should destroy Credit card bill" do
visit credit_card_bill_url(@credit_card_bill) visit credit_card_bill_url(@credit_card_bill)
click_on "Delete credit card bill", match: :first accept_prompt { click_on "Delete credit card bill", match: :first }
assert_text "Credit card bill was successfully destroyed" assert_text "Credit card bill was successfully destroyed"
end end

View file

@ -47,7 +47,7 @@ class ExpensesTest < ApplicationSystemTestCase
test "should destroy Expense" do test "should destroy Expense" do
visit expense_url(@expense) visit expense_url(@expense)
click_on "Delete expense", match: :first accept_prompt { click_on "Delete expense", match: :first }
assert_text "Expense was successfully destroyed" assert_text "Expense was successfully destroyed"
end end

View file

@ -15,6 +15,8 @@ class SessionsTest < ApplicationSystemTestCase
login(@user.email) login(@user.email)
visit root_url visit root_url
# Open the user dropdown by clicking the checkbox label
find('label[for="user-dropdown"]').click
click_on "Log out", match: :first click_on "Log out", match: :first
assert_text "Session was successfully destroyed" assert_text "Session was successfully destroyed"