diff --git a/package.json b/package.json index 55fd2640..5cadd2b5 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ "@sheerun/mutationobserver-shim": "^0.3.2", "@types/testing-library__dom": "^6.0.0", "aria-query": "3.0.0", + "dom-accessibility-api": "^0.3.0", "pretty-format": "^24.9.0", "wait-for-expect": "^3.0.0" }, diff --git a/src/__tests__/__snapshots__/role-helpers.js.snap b/src/__tests__/__snapshots__/role-helpers.js.snap index ef5746b2..2e5ce3d7 100644 --- a/src/__tests__/__snapshots__/role-helpers.js.snap +++ b/src/__tests__/__snapshots__/role-helpers.js.snap @@ -3,6 +3,7 @@ exports[`logRoles calls console.log with output from prettyRoles 1`] = ` "region: +Name "":
@@ -10,6 +11,7 @@ exports[`logRoles calls console.log with output from prettyRoles 1`] = ` -------------------------------------------------- link: +Name "link": @@ -25,14 +28,17 @@ navigation: -------------------------------------------------- heading: +Name "Main Heading":

+Name "Sub Heading":

+Name "Tertiary Heading":

@@ -40,6 +46,7 @@ heading: -------------------------------------------------- article: +Name "":
@@ -47,10 +54,12 @@ article: -------------------------------------------------- command: +Name "": +Name "": @@ -58,10 +67,12 @@ command: -------------------------------------------------- menuitem: +Name "": +Name "": @@ -69,10 +80,12 @@ menuitem: -------------------------------------------------- list: +Name "":
    +Name "":
      @@ -80,18 +93,22 @@ list: -------------------------------------------------- listitem: +Name "":
    • +Name "":
    • +Name "":
    • +Name "":
    • @@ -99,6 +116,7 @@ listitem: -------------------------------------------------- table: +Name "": @@ -106,6 +124,7 @@ table: -------------------------------------------------- rowgroup: +Name "": @@ -113,6 +132,7 @@ rowgroup: -------------------------------------------------- row: +Name "Cell 1 Cell 2 Cell 3": @@ -120,14 +140,17 @@ row: -------------------------------------------------- cell: +Name "Cell 1":
      +Name "Cell 2": +Name "Cell 3": @@ -135,6 +158,7 @@ cell: -------------------------------------------------- form: +Name "":
      @@ -142,11 +166,13 @@ form: -------------------------------------------------- radio: +Name "": +Name "": +Name "": +Name "":