Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create TC10.2-1-IC-dna-1.md #155

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
51 changes: 51 additions & 0 deletions testcases/TC10.2-1-dna-1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
# The layout must be 'testcase'; DO NOT Change
layout: testcase

# Brief, descriptive title for the test case
title: Form Names - hidden input element (visibility:hidden)


# The Test Case ID should follow the pattern:
# TC[Baseline Test Procedure #]-[Test Instruction #]-
# [Expected Result (pass/fail/dna)]-[example #], e.g., TC05.1-1-fail-1
tcid: TC10.2-ic-dna-1 #adapted from oldTestCases>TC10-008-dna

# Description of the Test Case, the included code sample, test considerations,
# and rationale for the expected result according to the applicable ICT
# Baseline test
descr: |
The purpose of this test case is to detect attributes that would contribute to the accessible name and accessible description computation and calculate the text alternative for input elements. The input element in the code sample does not present itself via the Accessibility tree/Accessibility object model (AOM), visually, or programmatically and consequently cannot be identified by the tester within the current test process. Consequently, a successful test should indicate that this test does not apply to Baseline Test 10.2 FormDescriptiveLabel.

# Reference and link to the applicable ICT Baseline test
app-baseline: |
[10.2 Test Procedure for Form Names](https://ictbaseline.access-board.gov/10Forms/#102-test-procedure-for-form-names)

**Baseline Test ID:** 10.2-FormDescriptiveLabel

**Test Instruction:** Identify Content

# Expected result that the ICT Baseline would predict
# [Pass | Fail | DNA]
result: DNA

# Brief description of the rationale for the expected result
result-descr: The input element in the code sample is hidden from visibility and from the accessibility tree; therefore there are no elements on the page that fit the Identify Content criteria.

# URL for the code sample
# In the sample code file, add id="tc_code" to the
# element that contains the relevant code snippet.
#
# Then upload the code sample to the 'testfiles' folder
# and provide the link (and only the url) below.
sample: /testfiles/TF10/10.2-ic-dna-1.html

# Table of test instructions, including the following table headers:
# Test Instruction #; Instruction Detail; Expected Test Case Result
#
# Include the table in the content section below
---
| Test Instruction | Instruction Detail | Expected Test Case Result |
|------------------|--------------------|---------------------------|
| **IC-1** | Find all form components. Examples include buttons, text fields, radio buttons, checkboxes, read-only fields, and multi-select lists. | The single input element in this test case is enclosed in a `<div>` element with the `visibility:hidden` style property, which removes it from the accessibility tree, visible, and programmatic detection. Even though the code exists in the DOM, this property renders the element undetectable and therefore not applicable to this Baseline Test based on the results of test step 1. |
| **Result** | If any of the above checks fail, then Baseline Test 10.2-FormDescriptiveLabel fails. | DNA - Test 10.2-FormName does not apply because there are no elements on the page (in the accessibility tree) that fit the Identify Content criteria. |