Skip to content

Commit

Permalink
test: maybe this
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSisb committed Jan 26, 2024
1 parent 547b833 commit f616e29
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,5 @@ describe("SummaryDetail", () => {
expect(renderedSummaryDetailButton.getAttribute("aria-label")).toEqual(null);
expect(renderedSummaryDetailButton.getAttribute("aria-labelledby")).not.toBe(null);
});

it("should render a summary-detail open", async () => {
await waitFor(() => {
render(<MockSummaryDetail visible />);
});
const renderedSummaryDetailButton = screen.getByRole("button");
const summaryDetailContent = screen.getByTestId("summary-detail-content");
expect(renderedSummaryDetailButton.getAttribute("aria-expanded")).toEqual("true");
expect(summaryDetailContent).toBeVisible();
});
});
});

0 comments on commit f616e29

Please sign in to comment.