diff --git a/test/system/alpha/dialog_test.rb b/test/system/alpha/dialog_test.rb index 816068a7f2..fbafcb08a2 100644 --- a/test/system/alpha/dialog_test.rb +++ b/test/system/alpha/dialog_test.rb @@ -68,16 +68,11 @@ def test_closes_dialog_that_is_not_top_level assert_selector "modal-dialog#dialog-one", visible: :hidden end - def test_can_focus_dialog_body_with_keyboard + # We're just opening the dialog with a scrollable body + # so the Axe scan can ensure the scrollable region is compliant + def test_with_scrollable_body visit_preview(:long_text) - click_button("Show Dialog") - - # tab twice to focus the dialog body - find("modal-dialog").send_keys(:tab).send_keys(:tab) - - # the scrollable-region element should now be focused after the two tab presses - assert_equal page.evaluate_script("document.activeElement.tagName"), "SCROLLABLE-REGION" end end end