Skip to content

Commit

Permalink
Fix test for role presentation
Browse files Browse the repository at this point in the history
  • Loading branch information
carbonrobot committed Dec 21, 2023
1 parent 0b12814 commit 300691f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/victory-candlestick/src/victory-candlestick.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ describe("components/victory-candlestick", () => {
open: i,
close: i,
high: i,
low: i,
low: i
}));
const { container } = render(<VictoryCandlestick data={data} />);
const points = container.querySelectorAll("rect");
Expand Down Expand Up @@ -225,8 +225,9 @@ describe("components/victory-candlestick", () => {

const presentationElements = screen.getAllByRole("presentation");

// Each data point is 3 (rect and 2 lines) for 9 total, plus the container element
expect(presentationElements).toHaveLength(10);
// Each data point is 4 (container, rect and 2 lines) for 12 total
// plus the chart container element
expect(presentationElements).toHaveLength(13);
});

it("adds an aria-label and tabIndex to Candle primitive", () => {
Expand Down

0 comments on commit 300691f

Please sign in to comment.