Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathewjordan committed Jul 31, 2024
1 parent 5a1fd66 commit b61ddf9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 4 additions & 1 deletion src/components/Slider/Header/Header.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { render, screen } from "@testing-library/react";

import Header from "./Header";
import React from "react";
import { useTranslation } from "react-i18next";

const headerProps = {
label: {
Expand Down Expand Up @@ -42,7 +43,9 @@ describe("Header component", () => {
expect(
screen.getByRole("link", { name: /edward s. curtis/i }),
).toBeInTheDocument();
expect(screen.getByRole("link", { name: /view all/i })).toBeInTheDocument();
expect(
screen.getByRole("link", { name: /commonViewAll/i }),
).toBeInTheDocument();
});

test("renders summary if present", () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ describe("AnnotationItemVTT", () => {
</I18NextTestingProvider>,
);
const el = screen.getByTestId("annotation-item-vtt");
expect(el).toHaveAttribute(
"aria-label",
"navigate Captions in WebVTT format",
);
expect(el).toHaveAttribute("aria-label", "Captions in WebVTT format");
});

it("should render the child Menu component", () => {
Expand Down

0 comments on commit b61ddf9

Please sign in to comment.