fleet/frontend/components/BackLink/BackLink.tests.tsx
Marko Lisica 8162d052bf
Icons improvements (making frontend consistent with Figma component library) (#14185)
# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [ ] Manual QA for all new/changed functionality

---------

Co-authored-by: Gabriel Hernandez <ghernandez345@gmail.com>
2023-10-31 16:06:38 +00:00

16 lines
450 B
TypeScript

import React from "react";
import { render, screen } from "@testing-library/react";
import BackLink from "./BackLink";
describe("BackLink - component", () => {
it("renders text and icon", () => {
render(<BackLink text="Back to software" />);
const text = screen.getByText("Back to software");
const icon = screen.getByTestId("chevron-left-icon");
expect(text).toBeInTheDocument();
expect(icon).toBeInTheDocument();
});
});