mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 12:04:08 +00:00
Finish remaining transaction filters (#1189)
* Add type filters to transaction search * Add amount filter
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user