diff --git a/packages/components/src/tag/tests/jest/TagGroup.test.tsx b/packages/components/src/tag/tests/jest/TagGroup.test.tsx index b8c266410..21d8edf4e 100644 --- a/packages/components/src/tag/tests/jest/TagGroup.test.tsx +++ b/packages/components/src/tag/tests/jest/TagGroup.test.tsx @@ -1,11 +1,7 @@ import { render, screen } from "@hopper-ui/test-utils"; import { createRef } from "react"; -import { Tag, TagGroup, TagGroupContext, type TagListProps } from "../../src/index.ts"; - -type ExtendedTagListProps = TagListProps & { - "data-testid"?: string; -}; +import { Tag, TagGroup, TagGroupContext } from "../../src/index.ts"; describe("Tag", () => { it("should render with default class", () => { @@ -41,10 +37,7 @@ describe("Tag", () => { render( - } + data-testid="tag-group" > option 1 @@ -52,7 +45,7 @@ describe("Tag", () => { ); const element = screen.getByTestId("tag-group"); - const tagList = screen.getByTestId("tag-list"); + const tagList = screen.getByRole("grid"); expect(element).toHaveAttribute("slot", "test"); expect(tagList).toHaveAttribute("aria-label", "test");