From cd12e35f3d6fa18802de49af11e804139b39f91d Mon Sep 17 00:00:00 2001 From: Simon Pieters Date: Tue, 10 Nov 2020 16:42:09 +0100 Subject: [PATCH 1/3] Experimentially add a system test for APG checkbox --- tests/system/robot/chromeTests.py | 25 ++++++++++++++++++++++++- tests/system/robot/chromeTests.robot | 3 +++ 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/tests/system/robot/chromeTests.py b/tests/system/robot/chromeTests.py index 307de0dca4e..88de9c4723f 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,26 @@ 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..ff9f1f490e8 100644 --- a/tests/system/robot/chromeTests.robot +++ b/tests/system/robot/chromeTests.robot @@ -40,3 +40,6 @@ 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. + test_ariaCheckbox_browseMode From 0b7d48d407d3912c9208f5ebbf3bec921b2d1ce3 Mon Sep 17 00:00:00 2001 From: Simon Pieters Date: Wed, 11 Nov 2020 10:29:31 +0100 Subject: [PATCH 2/3] Fix lint error --- tests/system/robot/chromeTests.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/system/robot/chromeTests.py b/tests/system/robot/chromeTests.py index 88de9c4723f..38af22de406 100644 --- a/tests/system/robot/chromeTests.py +++ b/tests/system/robot/chromeTests.py @@ -289,6 +289,7 @@ def test_ariaTreeGrid_browseMode(): ]) ) + def test_ariaCheckbox_browseMode(): """ Navigate to an unchecked checkbox in reading mode. From 36fb5c057ade5c8abe8837de5d2b46c8c2f3cd33 Mon Sep 17 00:00:00 2001 From: Simon Pieters Date: Wed, 18 Nov 2020 16:15:12 +0100 Subject: [PATCH 3/3] Update tests/system/robot/chromeTests.robot Co-authored-by: Reef Turner --- tests/system/robot/chromeTests.robot | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/system/robot/chromeTests.robot b/tests/system/robot/chromeTests.robot index ff9f1f490e8..f370c9956f5 100644 --- a/tests/system/robot/chromeTests.robot +++ b/tests/system/robot/chromeTests.robot @@ -42,4 +42,5 @@ ARIA treegrid test_ariaTreeGrid_browseMode ARIA checkbox [Documentation] Navigate to an unchecked checkbox in reading mode. + [Tags] aria-at test_ariaCheckbox_browseMode