Skip to content

Commit

Permalink
Add data-test-ids for regression tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Valerie R Young committed Aug 27, 2018
1 parent ed10a3a commit 8730f70
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 64 deletions.
6 changes: 3 additions & 3 deletions examples/alert/alert.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ <h2 id="rps_label">Role, Property, State, and Tabindex Attributes</h2>
</tr>
</thead>
<tbody>
<tr>
<tr data-test-id="alert-role">
<th scope="row"><code>alert</code></th>
<td></td>
<td><code>div</code></td>
<td>Identifies the element as the container where alert content will be added or updated.</td>
</tr>
<tr>
<tr data-test-id="alert-aria-live">
<td></td>
<th scope="row"><code>aria-live=<q>assertive</q></code></th>
<td>Implicit on <code>div</code></td>
Expand All @@ -96,7 +96,7 @@ <h2 id="rps_label">Role, Property, State, and Tabindex Attributes</h2>
</ul>
</td>
</tr>
<tr>
<tr data-test-id="alert-aria-atomic">
<td></td>
<th scope="row"><code>aria-atomic=<q>true</q></code></th>
<td>Implicit on <code>div</code></td>
Expand Down
4 changes: 2 additions & 2 deletions examples/breadcrumb/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ <h2 id="rps_label">Role, Property, State, and Tabindex Attributes</h2>
</tr>
</thead>
<tbody>
<tr>
<tr data-test-id="aria-label">
<td></td>
<th scope="row">
<code>aria-label=<q>Breadcrumb</q></code>
Expand All @@ -95,7 +95,7 @@ <h2 id="rps_label">Role, Property, State, and Tabindex Attributes</h2>
Provides a label that describes the type of navigation provided in the <code>nav</code> element.
</td>
</tr>
<tr>
<tr data-test-id="aria-current">
<td></td>
<th scope="row">
<code>aria-current=<q>page</q></code>
Expand Down
40 changes: 20 additions & 20 deletions examples/treeview/treeview-1/treeview-1b.html
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ <h2 id="kbd_label">Keyboard Support</h2>
</tr>
</thead>
<tbody>
<tr>
<tr data-test-id="key-enter-or-space">
<th><kbd>Enter</kbd><br>or <kbd>Space</kbd></th>
<td>
<ul>
Expand All @@ -451,7 +451,7 @@ <h2 id="kbd_label">Keyboard Support</h2>
</ul>
</td>
</tr>
<tr>
<tr data-test-id="key-down-arrow">
<th><kbd>Down arrow</kbd></th>
<td>
<ul>
Expand All @@ -460,7 +460,7 @@ <h2 id="kbd_label">Keyboard Support</h2>
</ul>
</td>
</tr>
<tr>
<tr data-test-id="key-up-arrow">
<th><kbd>Up arrow</kbd></th>
<td>
<ul>
Expand All @@ -469,7 +469,7 @@ <h2 id="kbd_label">Keyboard Support</h2>
</ul>
</td>
</tr>
<tr>
<tr data-test-id="key-right-arrow">
<th><kbd>Right Arrow</kbd></th>
<td>
<ul>
Expand All @@ -479,7 +479,7 @@ <h2 id="kbd_label">Keyboard Support</h2>
</ul>
</td>
</tr>
<tr>
<tr data-test-id="key-left-arrow">
<th><kbd>Left Arrow</kbd></th>
<td>
<ul>
Expand All @@ -489,15 +489,15 @@ <h2 id="kbd_label">Keyboard Support</h2>
</ul>
</td>
</tr>
<tr>
<tr data-test-id="key-home">
<th><kbd>Home</kbd></th>
<td>Moves focus to first node without opening or closing a node.</td>
</tr>
<tr>
<tr data-test-id="key-end">
<th><kbd>End</kbd></th>
<td>Moves focus to the last node that can be focused without expanding any nodes that are closed.</td>
</tr>
<tr>
<tr data-test-id="key-character">
<th><kbd>a-z, A-Z</kbd></th>
<td>
<ul>
Expand All @@ -507,7 +507,7 @@ <h2 id="kbd_label">Keyboard Support</h2>
</ul>
</td>
</tr>
<tr>
<tr data-test-id="key-asterisk">
<th>
<kbd>*</kbd> (asterisk)
</th>
Expand All @@ -534,7 +534,7 @@ <h2 id="rps_label">Role, Property, State, and Tabindex Attributes</h2>
</tr>
</thead>
<tbody>
<tr>
<tr data-test-id="tree-role">
<th scope="row"><code>tree</code></th>
<td></td>
<td><code>ul</code></td>
Expand All @@ -549,19 +549,19 @@ <h2 id="rps_label">Role, Property, State, and Tabindex Attributes</h2>
</ul>
</td>
</tr>
<tr>
<tr data-test-id="tree-arialabelledby">
<td></td>
<th scope="row"><code>aria-labelledby=&quot;IDREF&quot;</code></th>
<td><code>ul</code></td>
<td>Refers to the heading element that contains the label that identifies the purpose of the <code>tree</code>.</td>
</tr>
<tr>
<tr data-test-id="treeitem-role">
<th scope="row"><code>treeitem</code></th>
<td></td>
<td><code>li</code></td>
<td>Identifies the element as a <code>treeitem</code>.</td>
</tr>
<tr>
<tr data-test-id="treeitem-tabindex">
<td></td>
<th scope="row"><code>tabindex=&quot;-1&quot;</code></th>
<td><code>li</code></td>
Expand All @@ -572,7 +572,7 @@ <h2 id="rps_label">Role, Property, State, and Tabindex Attributes</h2>
</ul>
</td>
</tr>
<tr>
<tr data-test-id="treeitem-tabindex">
<td></td>
<th scope="row"><code>tabindex=&quot;0&quot;</code></th>
<td><code>li</code></td>
Expand All @@ -588,7 +588,7 @@ <h2 id="rps_label">Role, Property, State, and Tabindex Attributes</h2>
</ul>
</td>
</tr>
<tr>
<tr data-test-id="treeitem-aria-expanded">
<td></td>
<th scope="row"><code>aria-expanded=&quot;false&quot;</code></th>
<td><code>li</code></td>
Expand All @@ -600,7 +600,7 @@ <h2 id="rps_label">Role, Property, State, and Tabindex Attributes</h2>
</ul>
</td>
</tr>
<tr>
<tr data-test-id="treeitem-aria-expanded">
<td></td>
<th scope="row"><code>aria-expanded=&quot;true&quot;</code></th>
<td><code>li</code></td>
Expand All @@ -612,13 +612,13 @@ <h2 id="rps_label">Role, Property, State, and Tabindex Attributes</h2>
</ul>
</td>
</tr>
<tr>
<tr data-test-id="treeitem-aria-setsize">
<td></td>
<th scope="row"><code>aria-setsize=&quot;<em>number</em>&quot;</code></th>
<td><code>li</code></td>
<td>Defines the number of <code>treeitem</code> elements in the set of <code>treeitem</code> elements that are in the same branch and at the same level within the hierarchy.</td>
</tr>
<tr>
<tr data-test-id="treeitem-aria-posinset">
<td></td>
<th scope="row"><code>aria-posinset=&quot;<em>number</em>&quot;</code></th>
<td><code>li</code></td>
Expand All @@ -629,7 +629,7 @@ <h2 id="rps_label">Role, Property, State, and Tabindex Attributes</h2>
</ul>
</td>
</tr>
<tr>
<tr data-test-id="treeitem-aria-level">
<td></td>
<th scope="row"><code>aria-level=&quot;<em>number</em>&quot;</code></th>
<td><code>li</code></td>
Expand All @@ -641,7 +641,7 @@ <h2 id="rps_label">Role, Property, State, and Tabindex Attributes</h2>
</ul>
</td>
</tr>
<tr>
<tr data-test-id="role-group">
<th scope="row"><code>group</code></th>
<td></td>
<td><code>ul</code></td>
Expand Down
36 changes: 18 additions & 18 deletions examples/treeview/treeview-2/treeview-2a.html
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ <h2 id="kbd_label">Keyboard Support</h2>
</tr>
</thead>
<tbody>
<tr>
<tr data-test-id="key-enter-or-space">
<th><kbd>Enter</kbd><br>or <kbd>Space</kbd></th>
<td>
<ul>
Expand All @@ -373,7 +373,7 @@ <h2 id="kbd_label">Keyboard Support</h2>
</ul>
</td>
</tr>
<tr>
<tr data-test-id="key-down-arrow">
<th><kbd>Down arrow</kbd></th>
<td>
<ul>
Expand All @@ -382,7 +382,7 @@ <h2 id="kbd_label">Keyboard Support</h2>
</ul>
</td>
</tr>
<tr>
<tr data-test-id="key-up-arrow">
<th><kbd>Up arrow</kbd></th>
<td>
<ul>
Expand All @@ -391,7 +391,7 @@ <h2 id="kbd_label">Keyboard Support</h2>
</ul>
</td>
</tr>
<tr>
<tr data-test-id="key-right-arrow">
<th><kbd>Right Arrow</kbd></th>
<td>
<ul>
Expand All @@ -401,7 +401,7 @@ <h2 id="kbd_label">Keyboard Support</h2>
</ul>
</td>
</tr>
<tr>
<tr data-test-id="key-left-arrow">
<th><kbd>Left Arrow</kbd></th>
<td>
<ul>
Expand All @@ -411,15 +411,15 @@ <h2 id="kbd_label">Keyboard Support</h2>
</ul>
</td>
</tr>
<tr>
<tr data-test-id="key-home">
<th><kbd>Home</kbd></th>
<td>Moves focus to first node without opening or closing a node.</td>
</tr>
<tr>
<tr data-test-id="key-end">
<th><kbd>End</kbd></th>
<td>Moves focus to the last node that can be focused without expanding any nodes that are closed.</td>
</tr>
<tr>
<tr data-test-id="key-character">
<th><kbd>a-z, A-Z</kbd></th>
<td>
<ul>
Expand All @@ -429,7 +429,7 @@ <h2 id="kbd_label">Keyboard Support</h2>
</ul>
</td>
</tr>
<tr>
<tr data-test-id="key-asterisk">
<th>
<kbd>*</kbd> (asterisk)
</th>
Expand All @@ -456,7 +456,7 @@ <h2 id="rps_label">Role, Property, State, and Tabindex Attributes</h2>
</tr>
</thead>
<tbody>
<tr>
<tr data-test-id="tree-role">
<th scope="row"><code>tree</code></th>
<td></td>
<td><code>ul</code></td>
Expand All @@ -471,13 +471,13 @@ <h2 id="rps_label">Role, Property, State, and Tabindex Attributes</h2>
</ul>
</td>
</tr>
<tr>
<tr data-test-id="tree-aria-labelledby">
<td></td>
<th scope="row"><code>aria-labelledby=&quot;IDREF&quot;</code></th>
<td><code>ul</code></td>
<td>Refers to the heading element that contains the label that identifies the purpose of the <code>tree</code>.</td>
</tr>
<tr>
<tr data-test-id="treeitem-role">
<th scope="row"><code>treeitem</code></th>
<td></td>
<td><code>li</code><br>or <code>a</code></td>
Expand All @@ -494,7 +494,7 @@ <h2 id="rps_label">Role, Property, State, and Tabindex Attributes</h2>
</ul>
</td>
</tr>
<tr>
<tr data-test-id="treeitem-tabindex">
<td></td>
<th scope="row"><code>tabindex=&quot;-1&quot;</code></th>
<td><code>li</code><br>or <code>a</code></td>
Expand All @@ -505,7 +505,7 @@ <h2 id="rps_label">Role, Property, State, and Tabindex Attributes</h2>
</ul>
</td>
</tr>
<tr>
<tr data-test-id="treeitem-tabindex">
<td></td>
<th scope="row"><code>tabindex=&quot;0&quot;</code></th>
<td><code>li</code><br>or <code>a</code></td>
Expand All @@ -521,7 +521,7 @@ <h2 id="rps_label">Role, Property, State, and Tabindex Attributes</h2>
</ul>
</td>
</tr>
<tr>
<tr data-test-id="treeitem-aria-expanded">
<td></td>
<th scope="row"><code>aria-expanded=&quot;false&quot;</code></th>
<td><code>li</code></td>
Expand All @@ -533,7 +533,7 @@ <h2 id="rps_label">Role, Property, State, and Tabindex Attributes</h2>
</ul>
</td>
</tr>
<tr>
<tr data-test-id="treeitem-aria-expanded">
<td></td>
<th scope="row"><code>aria-expanded=&quot;true&quot;</code></th>
<td><code>li</code></td>
Expand All @@ -545,7 +545,7 @@ <h2 id="rps_label">Role, Property, State, and Tabindex Attributes</h2>
</ul>
</td>
</tr>
<tr>
<tr data-test-id="group-role">
<th scope="row"><code>group</code></th>
<td></td>
<td><code>ul</code></td>
Expand All @@ -557,7 +557,7 @@ <h2 id="rps_label">Role, Property, State, and Tabindex Attributes</h2>
</ul>
</td>
</tr>
<tr>
<tr data-test-id="none-role">
<th scope="row">
<code>none</code>
</th>
Expand Down
Loading

0 comments on commit 8730f70

Please sign in to comment.