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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue