Skip to content

Commit

Permalink
Fix test specificity
Browse files Browse the repository at this point in the history
  • Loading branch information
zachgoll committed Nov 4, 2024
1 parent f46dc0b commit 8d11ee9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/account/entries/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="bg-white p-5 border border-alpha-black-25 rounded-xl shadow-xs">
<div class="flex items-center justify-between mb-4">
<%= tag.h2 t(".title"), class: "font-medium text-lg" %>
<div data-controller="menu">
<div data-controller="menu" data-testid="activity-menu">
<button class="btn btn--secondary flex items-center gap-2" data-menu-target="button">
<%= lucide_icon("plus", class: "w-4 h-4") %>
<%= tag.span t(".new") %>
Expand Down
6 changes: 4 additions & 2 deletions test/system/trades_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ class TradesTest < ApplicationSystemTestCase
private

def open_new_trade_modal
click_on "New"
click_on "New transaction"
within "[data-testid='activity-menu']" do
click_on "New"
click_on "New transaction"
end
end

def within_trades(&block)
Expand Down

0 comments on commit 8d11ee9

Please sign in to comment.