mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-28 17:49:38 +02:00
Fix bug where transactions were duplicated in import confirm (#941)
* Fix bug where transactions were duplicated in import confirm Signed-off-by: Luke Hurst <hurstlj@umich.edu> * Update imports_test.rb Signed-off-by: Luke Hurst <hurstlj@umich.edu> --------- Signed-off-by: Luke Hurst <hurstlj@umich.edu>
This commit is contained in:
parent
f1d0a62ac7
commit
cf23453d93
2 changed files with 2 additions and 1 deletions
|
@ -13,7 +13,7 @@
|
||||||
<% transaction_entries.group_by(&:date).each do |date, transactions| %>
|
<% transaction_entries.group_by(&:date).each do |date, transactions| %>
|
||||||
<%= render "account/entries/entry_group",
|
<%= render "account/entries/entry_group",
|
||||||
date: date,
|
date: date,
|
||||||
entries: transaction_entries,
|
entries: transactions,
|
||||||
show_tags: true,
|
show_tags: true,
|
||||||
selectable: false,
|
selectable: false,
|
||||||
editable: false %>
|
editable: false %>
|
||||||
|
|
|
@ -89,6 +89,7 @@ class ImportsTest < ApplicationSystemTestCase
|
||||||
|
|
||||||
# 5) Confirm step
|
# 5) Confirm step
|
||||||
assert_selector "h1", text: "Confirm import"
|
assert_selector "h1", text: "Confirm import"
|
||||||
|
assert_selector "#new_account_entry", count: 2
|
||||||
click_button "Import 2 transactions"
|
click_button "Import 2 transactions"
|
||||||
assert_selector "h1", text: "Imports"
|
assert_selector "h1", text: "Imports"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue