Improve some visuals (#62)

Kind of make it look better.

Reviewed-on: #62
This commit is contained in:
Andrew Tomaka 2025-06-10 23:41:42 -04:00
parent 295a5c0112
commit b43629bdc9
29 changed files with 1937 additions and 395 deletions

View file

@ -17,7 +17,9 @@ class IncomesTest < ApplicationSystemTestCase
fill_in "Amount", with: @income.amount
fill_in "Description", with: @income.description
check "Included" if @income.included
if @income.included
find("label.toggle-label[for='income_included']").click
end
select @income.member.name, from: "Member"
click_on "Create Income"
@ -27,11 +29,13 @@ class IncomesTest < ApplicationSystemTestCase
test "should update Income" do
visit income_url(@income)
click_on "Edit this income", match: :first
click_on "Edit Income", match: :first
fill_in "Amount", with: @income.amount
fill_in "Description", with: @income.description
check "Included" if @income.included
if @income.included
find("label.toggle-label[for='income_included']").click
end
select @income.member.name, from: "Member"
click_on "Update Income"
@ -41,7 +45,7 @@ class IncomesTest < ApplicationSystemTestCase
test "should destroy Income" do
visit income_url(@income)
click_on "Destroy this income", match: :first
click_on "Delete", match: :first
assert_text "Income was successfully destroyed"
end