Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
khiga8 committed Aug 15, 2023
1 parent 60ee23d commit 6b1a1b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/system/alpha/dialog_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ def test_modal_has_accessible_name
assert_equal(find("modal-dialog")["aria-labelledby"], find("h1")["id"])
end

def test_autofocuses_close_button
def test_focuses_close_button
visit_preview(:default)

click_button("Show Dialog")

assert_selector("button[aria-label='Close'][autofocus]")
assert_equal page.evaluate_script("document.activeElement").text, "Close"
end
end
end

0 comments on commit 6b1a1b9

Please sign in to comment.