diff --git a/package.json b/package.json index 87f2a314..11d17a49 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "@babel/runtime": "^7.6.2", "@sheerun/mutationobserver-shim": "^0.3.2", "@types/testing-library__dom": "^6.0.0", - "aria-query": "3.0.0", + "aria-query": "https://pkg.csb.dev/eps1lon/aria-query/commit/7dc0809b/aria-query", "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..85a85770 100644 --- a/src/__tests__/__snapshots__/role-helpers.js.snap +++ b/src/__tests__/__snapshots__/role-helpers.js.snap @@ -169,5 +169,36 @@ textbox: data-testid="a-textarea" /> +-------------------------------------------------- +combobox: + + + + + + + --------------------------------------------------" `; diff --git a/src/__tests__/element-queries.js b/src/__tests__/element-queries.js index 8a8bc35f..c568e75a 100644 --- a/src/__tests__/element-queries.js +++ b/src/__tests__/element-queries.js @@ -426,12 +426,12 @@ test('queryAllByRole returns semantic html elements', () => { expect(queryAllByRole(/heading/i)).toHaveLength(6) expect(queryAllByRole('list')).toHaveLength(2) expect(queryAllByRole(/listitem/i)).toHaveLength(3) - expect(queryAllByRole(/textbox/i)).toHaveLength(2) + expect(queryAllByRole(/textbox/i)).toHaveLength(1) expect(queryAllByRole(/checkbox/i)).toHaveLength(1) expect(queryAllByRole(/radio/i)).toHaveLength(1) expect(queryAllByRole('row')).toHaveLength(3) expect(queryAllByRole(/rowgroup/i)).toHaveLength(2) - expect(queryAllByRole(/(table)|(textbox)/i)).toHaveLength(3) + expect(queryAllByRole(/(table)|(textbox)/i)).toHaveLength(2) expect(queryAllByRole(/img/i)).toHaveLength(1) }) diff --git a/src/__tests__/role-helpers.js b/src/__tests__/role-helpers.js index 9563b66c..248d1231 100644 --- a/src/__tests__/role-helpers.js +++ b/src/__tests__/role-helpers.js @@ -55,7 +55,14 @@ function setup() { + + + + + + +