Skip to content

Commit

Permalink
use new matcher for aria descriptions in test
Browse files Browse the repository at this point in the history
  • Loading branch information
nishasy committed Jan 9, 2025
1 parent e625ea6 commit c56b3c3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ describe("Linear graph screen reader", () => {

// Assert
expect(linearGraph).toBeInTheDocument();
expect(linearGraph).toHaveAttribute("aria-describedby", ":r1:-points");
expect(linearGraph).toHaveAccessibleDescription(
"The endpoint is at -5 comma 5 and the terminal point is at 5 comma 5.",
);
});

test.each`
Expand Down

0 comments on commit c56b3c3

Please sign in to comment.