aria-ease 6.7.0 → 6.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -70,7 +70,7 @@ npx aria-ease test
70
70
  # ✓ 26 assertions in ~1 second in CI
71
71
  ```
72
72
 
73
- **Why this matters:** Before, verifying a combobox meant manual keyboard testing across browsers. Now, it's automated, fast, and repeatable. You can boast about executing 26 combobox interaction assertions in ~2 seconds.
73
+ **Why this matters:** Before, verifying a combobox meant testing every interaction manually. Now, Aria-Ease automates the deterministic aspects of testing a combobox; keyboard interaction, ARIA states update, visibility, semantic roles.
74
74
 
75
75
  #### 4. **CI/CD Integration** (Available Now)
76
76
 
@@ -663,7 +663,7 @@ describe("Shopify User Menu Accessibility Test", () => {
663
663
 
664
664
  ### Strictness Modes
665
665
 
666
- Aria-Ease supports strictness policies to define how contract levels are enforced.
666
+ Aria-Ease supports strictness policies to define how APG specs are enforced.
667
667
 
668
668
  - `minimal`
669
669
  - `required` -> error
@@ -717,9 +717,14 @@ export default {
717
717
  Or override per test call:
718
718
 
719
719
  ```javascript
720
- await testUiComponent("menu", null, "http://localhost:5173/test-harness?component=menu", {
721
- strictness: "strict",
722
- });
720
+ await testUiComponent(
721
+ "menu",
722
+ null,
723
+ "http://localhost:5173/test-harness?component=menu",
724
+ {
725
+ strictness: "strict",
726
+ },
727
+ );
723
728
  ```
724
729
 
725
730
  ---
@@ -13,16 +13,15 @@
13
13
  },
14
14
 
15
15
  "selectors": {
16
- "container": "[data-test-id=accordion-group]",
17
- "trigger": "[data-test-id=accordion-trigger]",
18
- "focusable": "[data-test-id=accordion-trigger]",
19
- "relative": "[data-test-id=accordion-trigger]",
20
- "panel": "[role=region]"
16
+ "trigger": "[data-accordion] [aria-controls][aria-expanded], [aria-controls][aria-expanded]",
17
+ "focusable": "[data-accordion] [aria-controls][aria-expanded], [aria-controls][aria-expanded]",
18
+ "relative": "[data-accordion] [aria-controls][aria-expanded], [aria-controls][aria-expanded]",
19
+ "panel": "[role='region'][aria-labelledby], [role='region'][aria-labelledby]"
21
20
  },
22
21
 
23
22
  "observables": {
24
23
  "observable": "focus | visible | attribute | role",
25
- "target": "trigger | relative | panel | container",
24
+ "target": "trigger | relative | panel | focusable",
26
25
  "relative": "first | last | next | previous"
27
26
  },
28
27
 
@@ -38,11 +37,6 @@
38
37
  "from": "panel",
39
38
  "attribute": "aria-labelledby",
40
39
  "to": "trigger"
41
- },
42
- {
43
- "type": "contains",
44
- "parent": "container",
45
- "child": "trigger"
46
40
  }
47
41
  ],
48
42
 
@@ -14,7 +14,7 @@
14
14
 
15
15
  "selectors": {
16
16
  "input": "[role=combobox]",
17
- "button": "[data-test-id=combobox-button]",
17
+ "button": "button[tabindex='-1'], [role=button][tabindex='-1']",
18
18
  "listbox": "[role=listbox]",
19
19
  "options": "[role=option]",
20
20
  "focusable": "[role=combobox]",
@@ -13,7 +13,7 @@
13
13
  },
14
14
 
15
15
  "selectors": {
16
- "trigger": "[data-test-id=menu-trigger]",
16
+ "trigger": "[aria-controls][aria-haspopup][aria-expanded]:not([role='menuitem']):not([role='menuitemcheckbox']):not([role='menuitemradio'])",
17
17
  "container": "[role=menu]",
18
18
  "items": "[role=menuitem], [role=menuitemradio], [role=menuitemcheckbox]",
19
19
  "submenuTrigger": "[role=menu] [role=menuitem][aria-haspopup=true], [role=menu] [role=menuitemradio][aria-haspopup=true], [role=menu] [role=menuitemcheckbox][aria-haspopup=true], [role=menu] [role=menuitem][aria-haspopup=menu], [role=menu] [role=menuitemradio][aria-haspopup=menu], [role=menu] [role=menuitemcheckbox][aria-haspopup=menu]",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aria-ease",
3
- "version": "6.7.0",
3
+ "version": "6.8.0",
4
4
  "description": "Accessibility infrastructure for the entire frontend engineering lifecycle. Build accessible patterns, run automated audits, verify component interactions, and gate deployments — all in one system.",
5
5
  "main": "dist/index.cjs",
6
6
  "type": "module",