Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anagperal committed Jan 9, 2025
1 parent d2e5a95 commit 444d765
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/webapp/pages/app/__tests__/App.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { fireEvent, render } from "@testing-library/react";
import { render } from "@testing-library/react";

import App from "$/webapp/pages/app/App";
import { getTestContext } from "$/utils/tests";
Expand All @@ -10,15 +10,6 @@ describe("App", () => {

expect(await view.findByText("Send feedback")).toBeInTheDocument();
});

it("navigates to page", async () => {
const view = getView();

fireEvent.click(await view.findByText("John"));

expect(await view.findByText("Hello John")).toBeInTheDocument();
expect(view.asFragment()).toMatchSnapshot();
});
});

function getView() {
Expand Down

0 comments on commit 444d765

Please sign in to comment.