diff --git a/.changeset/long-wombats-provide.md b/.changeset/long-wombats-provide.md new file mode 100644 index 00000000000..48eeb5afbe8 --- /dev/null +++ b/.changeset/long-wombats-provide.md @@ -0,0 +1,5 @@ +--- +"@kaizen/components": patch +--- + +Remove value prefix on Select combobox accessible name diff --git a/packages/components/src/__future__/Select/Select.spec.tsx b/packages/components/src/__future__/Select/Select.spec.tsx index cf60c15e8f0..5854675f15e 100644 --- a/packages/components/src/__future__/Select/Select.spec.tsx +++ b/packages/components/src/__future__/Select/Select.spec.tsx @@ -33,14 +33,35 @@ const SelectWrapper = ({ describe("", () => { /> ) const trigger = getByRole("combobox", { - name: "Batch brew Mock Label", + name: "Mock Label", }) await user.click(trigger) await waitFor(() => { @@ -93,7 +114,7 @@ describe("", () => { ) const trigger = getByRole("combobox", { - name: "Batch brew Mock Label", + name: "Mock Label", }) await user.click(trigger) @@ -147,7 +168,7 @@ describe("", () => { ) const trigger = getByRole("combobox", { - name: "Batch brew Mock Label", + name: "Mock Label", }) await user.tab() await waitFor(() => { @@ -305,9 +326,7 @@ describe("", () => { const { getByRole } = render( ) - const trigger = getByRole("combobox", { name: "Select Mock Label" }) + const trigger = getByRole("combobox", { name: "Mock Label" }) await user.tab() await waitFor(() => { @@ -332,7 +351,7 @@ describe("