Skip to content

Commit

Permalink
Fix stepper tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nhobes committed Oct 29, 2024
1 parent ec5c69f commit f3efa38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/petal_components/stepper.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ defmodule PetalComponents.Stepper do
"pc-stepper--#{@size}",
@class
]}
role="group"
role="list"
aria-label="Progress steps"
>
<div class="pc-stepper__container">
Expand Down
3 changes: 2 additions & 1 deletion test/petal/stepper_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ defmodule PetalComponents.StepperTest do
""")

assert html =~ "aria-label=\"Progress steps\""
assert html =~ "role=\"group\""
assert html =~ "role=\"list\""
assert html =~ "aria-current=\"step\""
assert html =~ "role=\"listitem\""
end

test "renders correct number of steps" do
Expand Down

0 comments on commit f3efa38

Please sign in to comment.