Skip to content

Commit

Permalink
System test stabilization
Browse files Browse the repository at this point in the history
  • Loading branch information
zachgoll committed May 30, 2024
1 parent 5c29d95 commit c96e32d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 0 additions & 3 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ def notification(text, **options, &block)
# <div>Content here</div>
# <% end %>
#
# @note can also be triggered via ?modal=model&entity_id=uuid query params
#
def modal(options = {}, &block)
content = capture &block
render partial: "shared/modal", locals: { content:, classes: options[:classes] }
Expand All @@ -43,7 +41,6 @@ def modal(options = {}, &block)
# <div>Content here</div>
# <% end %>
#
# @note can also be triggered via ?drawer=model&entity_id=uuid query params
def drawer(&block)
content = capture &block
render partial: "shared/drawer", locals: { content: content }
Expand Down
2 changes: 1 addition & 1 deletion test/application_system_test_case.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
setup do
Capybara.default_max_wait_time = 8
Capybara.default_max_wait_time = 5
end

driven_by :selenium, using: ENV["CI"].present? ? :headless_chrome : :chrome, screen_size: [ 1400, 1400 ]
Expand Down
2 changes: 2 additions & 0 deletions test/system/transactions_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ class TransactionsTest < ApplicationSystemTestCase
fill_in "Search transactions by name", with: @target_txn.name
end

assert_selector "#" + dom_id(@target_txn), count: 1

find("#transaction-filters-button").click

within "#transaction-filters-menu" do
Expand Down

0 comments on commit c96e32d

Please sign in to comment.