Improve some visuals (#62)
Kind of make it look better. Reviewed-on: #62
This commit is contained in:
parent
295a5c0112
commit
b43629bdc9
29 changed files with 1937 additions and 395 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue