mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-10 07:55:21 +02:00
fix tests
This commit is contained in:
parent
79bd63528e
commit
756a010131
3 changed files with 10 additions and 1 deletions
|
@ -42,6 +42,7 @@ class ChatsTest < ApplicationSystemTestCase
|
|||
end
|
||||
|
||||
test "create chat and navigate chats sidebar" do
|
||||
@user.update!(ai_enabled: true)
|
||||
@user.chats.destroy_all
|
||||
|
||||
visit root_url
|
||||
|
|
|
@ -15,6 +15,8 @@ class ImportsTest < ApplicationSystemTestCase
|
|||
|
||||
click_on "Import transactions"
|
||||
|
||||
find("button[data-id='csv-paste-tab']").click
|
||||
|
||||
fill_in "import[raw_file_str]", with: file_fixture("imports/transactions.csv").read
|
||||
|
||||
find('input[type="submit"][value="Upload CSV"]').click
|
||||
|
@ -59,6 +61,8 @@ class ImportsTest < ApplicationSystemTestCase
|
|||
|
||||
click_on "Import investments"
|
||||
|
||||
find("button[data-id='csv-paste-tab']").click
|
||||
|
||||
fill_in "import[raw_file_str]", with: file_fixture("imports/trades.csv").read
|
||||
|
||||
find('input[type="submit"][value="Upload CSV"]').click
|
||||
|
@ -90,6 +94,8 @@ class ImportsTest < ApplicationSystemTestCase
|
|||
|
||||
click_on "Import accounts"
|
||||
|
||||
find("button[data-id='csv-paste-tab']").click
|
||||
|
||||
fill_in "import[raw_file_str]", with: file_fixture("imports/accounts.csv").read
|
||||
|
||||
find('input[type="submit"][value="Upload CSV"]').click
|
||||
|
@ -128,6 +134,8 @@ class ImportsTest < ApplicationSystemTestCase
|
|||
|
||||
click_on "Import from Mint"
|
||||
|
||||
find("button[data-id='csv-paste-tab']").click
|
||||
|
||||
fill_in "import[raw_file_str]", with: file_fixture("imports/mint.csv").read
|
||||
|
||||
find('input[type="submit"][value="Upload CSV"]').click
|
||||
|
|
|
@ -33,7 +33,7 @@ class TransactionsTest < ApplicationSystemTestCase
|
|||
assert_selector "h1", text: "Transactions"
|
||||
|
||||
within "form#transactions-search" do
|
||||
fill_in "Search transactions by name", with: @transaction.name
|
||||
fill_in "Search transactions ...", with: @transaction.name
|
||||
end
|
||||
|
||||
assert_selector "#" + dom_id(@transaction), count: 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue