We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7845314 commit e10fda8Copy full SHA for e10fda8
1 file changed
src/components/Card/__test__/card.test.jsx
@@ -9,7 +9,7 @@ test("should render a title", () => {
9
image="test-image.jpg"
10
/>
11
);
12
- const titleElement = screen.getAllByText("countryName");
+ const titleElement = screen.getByRole("heading", { name: "countryName" });
13
expect(titleElement).toBeInTheDocument();
14
});
15
0 commit comments