Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion tests/system/robot/chromeTests.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def test_ariaTreeGrid_browseMode():
testFile = os.path.join(ARIAExamplesDir, "treegrid", "treegrid-1.html")
_chrome.prepareChrome(
f"""
<iframe src="{testFile}" />
<iframe src="{testFile}"></iframe>
"""
)
# Jump to the first heading in the iframe.
Expand Down Expand Up @@ -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"""
<iframe src="{testFile}"></iframe>
"""
)
# 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"
)
4 changes: 4 additions & 0 deletions tests/system/robot/chromeTests.robot
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Comment thread
zcorpan marked this conversation as resolved.
[Tags] aria-at
test_ariaCheckbox_browseMode