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
|
@ -8,7 +8,7 @@ class CreditCardBillsTest < ApplicationSystemTestCase
|
|||
|
||||
test "visiting the index" do
|
||||
visit credit_card_bills_url
|
||||
assert_selector "h1", text: "Credit card bills"
|
||||
assert_selector "h1", text: "Credit Card Bills"
|
||||
end
|
||||
|
||||
test "should create credit card bill" do
|
||||
|
@ -25,7 +25,7 @@ class CreditCardBillsTest < ApplicationSystemTestCase
|
|||
|
||||
test "should update Credit card bill" do
|
||||
visit credit_card_bill_url(@credit_card_bill)
|
||||
click_on "Edit this credit card bill", match: :first
|
||||
click_on "Edit credit card bill", match: :first
|
||||
|
||||
fill_in "Amount", with: @credit_card_bill.amount
|
||||
fill_in "Description", with: @credit_card_bill.description
|
||||
|
@ -37,7 +37,7 @@ class CreditCardBillsTest < ApplicationSystemTestCase
|
|||
|
||||
test "should destroy Credit card bill" do
|
||||
visit credit_card_bill_url(@credit_card_bill)
|
||||
click_on "Destroy this credit card bill", match: :first
|
||||
click_on "Delete credit card bill", match: :first
|
||||
|
||||
assert_text "Credit card bill was successfully destroyed"
|
||||
end
|
||||
|
|
|
@ -15,7 +15,9 @@ class ExpensesTest < ApplicationSystemTestCase
|
|||
visit expenses_url
|
||||
click_on "New expense"
|
||||
|
||||
check "Credit card" if @expense.credit_card
|
||||
if @expense.credit_card
|
||||
find("label.toggle-label[for='expense_credit_card']").click
|
||||
end
|
||||
fill_in "Description", with: @expense.description
|
||||
check "Estimated" if @expense.estimated
|
||||
fill_in "Payment", with: @expense.payment
|
||||
|
@ -28,9 +30,11 @@ class ExpensesTest < ApplicationSystemTestCase
|
|||
|
||||
test "should update Expense" do
|
||||
visit expense_url(@expense)
|
||||
click_on "Edit this expense", match: :first
|
||||
click_on "Edit expense", match: :first
|
||||
|
||||
check "Credit card" if @expense.credit_card
|
||||
if @expense.credit_card
|
||||
find("label.toggle-label[for='expense_credit_card']").click
|
||||
end
|
||||
fill_in "Description", with: @expense.description
|
||||
check "Estimated" if @expense.estimated
|
||||
fill_in "Payment", with: @expense.payment
|
||||
|
@ -43,7 +47,7 @@ class ExpensesTest < ApplicationSystemTestCase
|
|||
|
||||
test "should destroy Expense" do
|
||||
visit expense_url(@expense)
|
||||
click_on "Destroy this expense", match: :first
|
||||
click_on "Delete expense", match: :first
|
||||
|
||||
assert_text "Expense was successfully destroyed"
|
||||
end
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -25,7 +25,7 @@ class MembersTest < ApplicationSystemTestCase
|
|||
|
||||
test "should update Member" do
|
||||
visit member_url(@member)
|
||||
click_on "Edit this member", match: :first
|
||||
click_on "Edit Member", match: :first
|
||||
|
||||
fill_in "Name", with: @member.name
|
||||
check "Pays" if @member.pays
|
||||
|
@ -37,7 +37,7 @@ class MembersTest < ApplicationSystemTestCase
|
|||
|
||||
test "should destroy Member" do
|
||||
visit member_url(@member)
|
||||
click_on "Destroy this member", match: :first
|
||||
click_on "Delete", match: :first
|
||||
|
||||
assert_text "Member was successfully destroyed"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue