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:
parent
0922a7cbd6
commit
e812b715d3
4 changed files with 33 additions and 3 deletions
18
test/system/accounts_test.rb
Normal file
18
test/system/accounts_test.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue