Skip to content

Commit

Permalink
Fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbernstein committed Jan 22, 2024
1 parent bd998fc commit 46862ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/QuicksightDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class QuicksightDashboard extends React.Component<
render(): JSX.Element {
return (
<iframe
title="Quicksight Dashboard"
title="Library Dashboard"
height="1200"
width="100%"
src={this.state.embedUrl}
Expand Down
5 changes: 4 additions & 1 deletion tests/jest/components/QuicksightDashboard.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ describe("QuicksightDashboard", () => {
);

await waitFor(() => {
expect(screen.getByRole("iframe")).toHaveAttribute("src", embedUrl);
expect(screen.getAllByTitle("Library Dashboard")[0]).toHaveAttribute(
"src",
embedUrl
);
});
});
});

0 comments on commit 46862ed

Please sign in to comment.