feat(web): add tooltips to icon-only action buttons
This commit is contained in:
parent
bec49f0771
commit
035edae522
10 changed files with 144 additions and 44 deletions
|
|
@ -55,6 +55,22 @@ defmodule MvWeb.MemberLive.ShowMembershipFeesTest do
|
|||
|> Ash.create!(actor: system_actor)
|
||||
end
|
||||
|
||||
describe "cycle-regeneration control tooltip (§3.5 icon/tooltip audit)" do
|
||||
test "the regenerate_cycles control carries a tooltip and accessible label", %{conn: conn} do
|
||||
fee_type = create_fee_type(%{interval: :yearly})
|
||||
member = Mv.Fixtures.member_fixture(%{membership_fee_type_id: fee_type.id})
|
||||
|
||||
{:ok, view, _html} = live(conn, "/members/#{member.id}")
|
||||
|
||||
view
|
||||
|> element("button[phx-click='switch_tab'][phx-value-tab='membership_fees']")
|
||||
|> render_click()
|
||||
|
||||
assert has_element?(view, ".tooltip[data-tip] button[phx-click=regenerate_cycles]")
|
||||
assert has_element?(view, "button[phx-click=regenerate_cycles][aria-label]")
|
||||
end
|
||||
end
|
||||
|
||||
describe "cycles table display" do
|
||||
test "displays all cycles for member", %{conn: conn} do
|
||||
fee_type = create_fee_type(%{interval: :yearly})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue