mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 23:59:40 +02:00
Finish remaining transaction filters (#1189)
* Add type filters to transaction search * Add amount filter
This commit is contained in:
parent
e06f0c76f9
commit
730e58d763
11 changed files with 164 additions and 30 deletions
|
@ -77,10 +77,11 @@ class TransactionsTest < ApplicationSystemTestCase
|
|||
fill_in "q_end_date", with: 1.day.ago.to_date
|
||||
|
||||
click_button "Type"
|
||||
assert_text "Filter by type coming soon..."
|
||||
check("Income")
|
||||
|
||||
click_button "Amount"
|
||||
assert_text "Filter by amount coming soon..."
|
||||
select "Less than"
|
||||
fill_in "q_amount", with: 200
|
||||
|
||||
click_button "Category"
|
||||
check(category.name)
|
||||
|
@ -102,6 +103,8 @@ class TransactionsTest < ApplicationSystemTestCase
|
|||
find("li", text: account.name).first("a").click
|
||||
find("li", text: "on or after #{10.days.ago.to_date}").first("a").click
|
||||
find("li", text: "on or before #{1.day.ago.to_date}").first("a").click
|
||||
find("li", text: "Income").first("a").click
|
||||
find("li", text: "less than 200").first("a").click
|
||||
find("li", text: category.name).first("a").click
|
||||
find("li", text: merchant.name).first("a").click
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue