1
0
Fork 0
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:
neo773 2025-04-18 00:57:04 +05:30
parent 79bd63528e
commit 756a010131
No known key found for this signature in database
GPG key ID: 6B43F29FCC69B333
3 changed files with 10 additions and 1 deletions

View file

@ -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

View file

@ -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

View file

@ -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