1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 15:49:39 +02:00

First pass at a system test (#305)

This commit is contained in:
Dwight Watson 2024-02-06 08:19:31 +11:00 committed by GitHub
parent 0922a7cbd6
commit e812b715d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 33 additions and 3 deletions

View file

@ -0,0 +1,18 @@
require "application_system_test_case"
class AccountsTest < ApplicationSystemTestCase
setup do
sign_in @user = users(:bob)
end
test "should create account" do
click_on "New account"
click_on "Credit Card"
within "form" do
fill_in "Name", with: "VISA"
fill_in "Balance", with: "1000"
click_on "Submit"
end
assert_text "$1,000.00"
end
end