1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-06 22:15:20 +02:00

Fix remaining tests

This commit is contained in:
Zach Gollwitzer 2025-07-18 08:24:35 -04:00
parent 59b702d12b
commit 0204d83185
4 changed files with 4 additions and 5 deletions

View file

@ -4,7 +4,7 @@ class DS::Menu < DesignSystemComponent
attr_reader :variant, :avatar_url, :initials, :placement, :offset, :icon_vertical, :no_padding, :testid
renders_one :button, ->(**button_options, &block) do
options_with_target = button_options.merge(data: { menu_target: "button" })
options_with_target = button_options.merge(data: { DS__menu_target: "button" })
if block
content_tag(:button, **options_with_target, &block)

View file

@ -23,8 +23,7 @@
type: "button",
text: "Filter",
variant: "outline",
icon: "list-filter",
data: { menu_target: "button" }
icon: "list-filter"
) %>
<% menu.with_custom_content do %>

View file

@ -37,7 +37,7 @@
</div>
<div>
<%= render DS::Button.new(text: t(".cancel"), type: "button", variant: "ghost", data: { action: "menu#close" }) %>
<%= render DS::Button.new(text: t(".cancel"), type: "button", variant: "ghost", data: { action: "DS--menu#close" }) %>
<%= render DS::Button.new(text: t(".apply")) %>
</div>
</div>

View file

@ -98,7 +98,7 @@ class AccountsTest < ApplicationSystemTestCase
private
def open_new_account_modal
within "[data-controller='tabs']" do
within "[data-controller='DS--tabs']" do
click_button "All"
click_link "New account"
end