mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-03 12:35:21 +02:00
Test fixes
This commit is contained in:
parent
764164cf57
commit
b7c56e2fb7
2 changed files with 2 additions and 2 deletions
|
@ -162,8 +162,7 @@ end
|
|||
income_money: Money.new(0, "USD")
|
||||
)
|
||||
|
||||
expected_filters = { "start_date" => 30.days.ago.to_date }
|
||||
Transaction::Search.expects(:new).with(family, filters: expected_filters).returns(search)
|
||||
Transaction::Search.expects(:new).with(family, filters: {}).returns(search)
|
||||
search.expects(:totals).once.returns(totals)
|
||||
|
||||
get transactions_url
|
||||
|
|
|
@ -34,6 +34,7 @@ class TransactionsTest < ApplicationSystemTestCase
|
|||
|
||||
within "form#transactions-search" do
|
||||
fill_in "Search transactions ...", with: @transaction.name
|
||||
find("#q_search").send_keys(:tab) # Trigger blur to submit form
|
||||
end
|
||||
|
||||
assert_selector "#" + dom_id(@transaction), count: 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue