Skip to content

Commit

Permalink
Fixed failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
khushiagl committed Jul 27, 2023
1 parent 51707ec commit 8f49fa3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,19 @@ describe("FilterModal", () => {
});

it("should render the modal", () => {
expect(screen.getByText(/Filter By:/i)).toBeInTheDocument();
expect(screen.getByText(/Filter Submissions/i)).toBeInTheDocument();
expect(screen.getByText(/Close/i)).toBeInTheDocument();
expect(screen.getByText(/Clear All/i)).toBeInTheDocument();
});

describe("Filter By Annotation", () => {
it("should render the annotation textbox", () => {
expect(screen.getByText(/Annotation/i)).toBeInTheDocument();
expect(screen.getByPlaceholderText(/Type here/i)).toBeInTheDocument();
expect(screen.getByPlaceholderText(/Search Text/i)).toBeInTheDocument();
});

it("should save annotation text on input", () => {
fireEvent.change(screen.getByPlaceholderText(/Type here/i), {
fireEvent.change(screen.getByPlaceholderText(/Search Text/i), {
target: {value: "JavaScript"},
});
expect(props.mutateFilterData).toHaveBeenCalled();
Expand Down Expand Up @@ -217,7 +217,7 @@ describe("FilterModal", () => {
});

describe("Total Extra Mark Range", () => {
const test_id = "Total Extra Mark";
const test_id = "Total Extra Marks";
rangeRender(test_id);
rangeOnInput(test_id);
rangeValidInput(test_id);
Expand Down

0 comments on commit 8f49fa3

Please sign in to comment.