fix: fix tests and remove navbar remainings
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
30805b07ca
commit
8a1b14fc79
9 changed files with 706 additions and 332 deletions
|
|
@ -143,14 +143,14 @@ defmodule MvWeb.Layouts.SidebarTest do
|
|||
assert html =~ ~s(href="/users")
|
||||
|
||||
# Check for Custom Fields link
|
||||
assert html =~ ~s(href="/custom_fields")
|
||||
assert html =~ ~s(href="/custom_field_values")
|
||||
|
||||
# Check for Contributions section
|
||||
assert html =~ ~s(href="/contribution_types")
|
||||
assert html =~ ~s(href="/contribution_settings")
|
||||
assert html =~ ~s(href="/membership_fee_settings")
|
||||
|
||||
# Check for Settings link (placeholder)
|
||||
assert html =~ ~s(href="#")
|
||||
assert html =~ ~s(href="/settings")
|
||||
end
|
||||
|
||||
test "T2.4: renders sidebar with main-sidebar ID" do
|
||||
|
|
@ -183,11 +183,11 @@ defmodule MvWeb.Layouts.SidebarTest do
|
|||
assert html =~ "hero-user-circle"
|
||||
|
||||
# Check for Custom Fields link with icon
|
||||
assert html =~ ~s(href="/custom_fields")
|
||||
assert html =~ ~s(href="/custom_field_values")
|
||||
assert html =~ "hero-rectangle-group"
|
||||
|
||||
# Check for Settings link with icon
|
||||
assert html =~ ~s(href="#")
|
||||
assert html =~ ~s(href="/settings")
|
||||
assert html =~ "hero-cog-6-tooth"
|
||||
|
||||
# Check for tooltips (data-tip attribute)
|
||||
|
|
@ -203,7 +203,7 @@ defmodule MvWeb.Layouts.SidebarTest do
|
|||
|
||||
# Check for contribution links
|
||||
assert html =~ ~s(href="/contribution_types")
|
||||
assert html =~ ~s(href="/contribution_settings")
|
||||
assert html =~ ~s(href="/membership_fee_settings")
|
||||
end
|
||||
|
||||
test "T3.3: renders nested menu with dropdown for collapsed state" do
|
||||
|
|
@ -514,9 +514,9 @@ defmodule MvWeb.Layouts.SidebarTest do
|
|||
expected_links = [
|
||||
"/members",
|
||||
"/users",
|
||||
"/custom_fields",
|
||||
"/custom_field_values",
|
||||
"/contribution_types",
|
||||
"/contribution_settings",
|
||||
"/membership_fee_settings",
|
||||
"/sign-out"
|
||||
]
|
||||
|
||||
|
|
@ -641,7 +641,7 @@ defmodule MvWeb.Layouts.SidebarTest do
|
|||
|
||||
# Inner_block items rendered
|
||||
assert html =~ ~s(href="/contribution_types")
|
||||
assert html =~ ~s(href="/contribution_settings")
|
||||
assert html =~ ~s(href="/membership_fee_settings")
|
||||
assert html =~ ~s(role="menu")
|
||||
end
|
||||
end
|
||||
|
|
@ -749,7 +749,7 @@ defmodule MvWeb.Layouts.SidebarTest do
|
|||
|
||||
# Drawer overlay label for mobile
|
||||
assert html =~ ~s(for="mobile-drawer")
|
||||
assert html =~ ~s(class="drawer-overlay")
|
||||
assert has_class?(html, "drawer-overlay")
|
||||
assert html =~ ~s(lg:hidden)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue