diff --git a/tests/system/robot/chromeTests.py b/tests/system/robot/chromeTests.py index 307de0dca4e..38af22de406 100644 --- a/tests/system/robot/chromeTests.py +++ b/tests/system/robot/chromeTests.py @@ -238,7 +238,7 @@ def test_ariaTreeGrid_browseMode(): testFile = os.path.join(ARIAExamplesDir, "treegrid", "treegrid-1.html") _chrome.prepareChrome( f""" - """ ) # Jump to the first heading in the iframe. @@ -288,3 +288,27 @@ def test_ariaTreeGrid_browseMode(): "level 1 Treegrids are awesome Want to learn how to use them? aaron at thegoogle dot rocks expanded", ]) ) + + +def test_ariaCheckbox_browseMode(): + """ + Navigate to an unchecked checkbox in reading mode. + """ + testFile = os.path.join(ARIAExamplesDir, "checkbox", "checkbox-1", "checkbox-1.html") + _chrome.prepareChrome( + f""" + + """ + ) + # Jump to the first heading in the iframe. + actualSpeech = _chrome.getSpeechAfterKey("h") + _asserts.strings_match( + actualSpeech, + "frame main landmark Checkbox Example (Two State) heading level 1" + ) + # Navigate to the checkbox. + actualSpeech = _chrome.getSpeechAfterKey("x") + _asserts.strings_match( + actualSpeech, + "Sandwich Condiments grouping list with 4 items Lettuce check box not checked" + ) diff --git a/tests/system/robot/chromeTests.robot b/tests/system/robot/chromeTests.robot index 2cdcc276ec4..f370c9956f5 100644 --- a/tests/system/robot/chromeTests.robot +++ b/tests/system/robot/chromeTests.robot @@ -40,3 +40,7 @@ ARIA treegrid [Documentation] Ensure that ARIA treegrids are accessible as a standard table in browse mode. # Excluded due to regular failures. test_ariaTreeGrid_browseMode +ARIA checkbox + [Documentation] Navigate to an unchecked checkbox in reading mode. + [Tags] aria-at + test_ariaCheckbox_browseMode