fix: update clubname on save
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
e0712d47bc
commit
dd4048669c
5 changed files with 28 additions and 11 deletions
|
|
@ -99,8 +99,15 @@ defmodule MvWeb.MemberLive.IndexCustomFieldsAccessibilityTest do
|
|||
# Check that the sort button is a button element (keyboard accessible)
|
||||
assert html =~ ~r/<button[^>]*data-testid=["']custom_field_#{field.id}["']/
|
||||
|
||||
# Extract the button element for the custom field and check it doesn't have tabindex="-1"
|
||||
button_match =
|
||||
Regex.run(~r/<button[^>]*data-testid=["']custom_field_#{field.id}["'][^>]*>/, html)
|
||||
|
||||
assert button_match != nil, "Button with data-testid='custom_field_#{field.id}' not found"
|
||||
|
||||
button_html = List.first(button_match)
|
||||
# Button should not have tabindex="-1" (which would remove from tab order)
|
||||
refute html =~ ~r/tabindex=["']-1["']/
|
||||
refute button_html =~ ~r/tabindex=["']-1["']/
|
||||
end
|
||||
|
||||
test "custom field column header has proper semantic structure", %{conn: conn, field: field} do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue