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:
parent
59b702d12b
commit
0204d83185
4 changed files with 4 additions and 5 deletions
|
@ -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)
|
||||
|
|
|
@ -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 %>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue