File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
lib/components_guide_web/components
test/collected_live_web/components Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ defmodule ComponentsGuideWeb.CalendarComponent do
44
44
<%= day %>
45
45
</ td >
46
46
<% else %>
47
- < td class = "bg-black " > </ td >
47
+ < td role = " presentation " class = "bg-black " > </ td >
48
48
<% end %>
49
49
<% end %>
50
50
</ tr >
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ defmodule ComponentsGuideWeb.CalendarComponentTest do
19
19
20
20
assert 7 == count ( el , "thead th" )
21
21
assert 6 == count ( el , "tbody tr" )
22
+ assert 30 == count ( el , "tbody td:not([role=presentation])" )
22
23
end
23
24
24
25
@ tag assigns: [ date: ~D[ 2022-04-15] ]
@@ -31,6 +32,7 @@ defmodule ComponentsGuideWeb.CalendarComponentTest do
31
32
test "January 3 2022" , % { el: el } do
32
33
current_date = el |> find ( "td[aria-current=date]" )
33
34
assert "3" == current_date |> text ( ) |> String . trim ( )
35
+ assert 31 == count ( el , "tbody td:not([role=presentation])" )
34
36
end
35
37
end
36
38
end
You can’t perform that action at this time.
0 commit comments