Skip to content

Commit

Permalink
fix ui: rename suggestion radio test
Browse files Browse the repository at this point in the history
  • Loading branch information
gibsonliketheguitar committed Apr 8, 2024
1 parent 63d8ae5 commit 02a0231
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ import "@testing-library/jest-dom";
import { render, screen } from "@testing-library/react";
import DatePickerSuggestions from "./date-picker-suggestions";

describe("Date Input", () => {
describe("Date Range Suggestions Radio Group", () => {
beforeEach(() => {
render(<DatePickerSuggestions onSuggestionChange={(value) => console.log(value)} />);
});

test("renders radio group and all it's options", () => {
expect(screen.getByLabelText("Past 1 Year"));
expect(screen.getByLabelText("Past 3 Months"));
expect(screen.getByLabelText("Past 1 Month"));
expect(screen.getByLabelText("Year to Date"));
expect(screen.getByLabelText("3 Months"));
expect(screen.getByLabelText("1 Month"));
expect(screen.queryByLabelText("It's over 9000")).not.toBeInTheDocument();
});
});

0 comments on commit 02a0231

Please sign in to comment.