Skip to content

Commit e10fda8

Browse files
committed
card test
1 parent 7845314 commit e10fda8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/Card/__test__/card.test.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ test("should render a title", () => {
99
image="test-image.jpg"
1010
/>
1111
);
12-
const titleElement = screen.getAllByText("countryName");
12+
const titleElement = screen.getByRole("heading", { name: "countryName" });
1313
expect(titleElement).toBeInTheDocument();
1414
});
1515

0 commit comments

Comments
 (0)