generated from hackforla/.github-hackforla-base-repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Zeke download csv and print pdf (#1508)
* v0.1 for download csv on the projects page * 1420 + 1393 - download projects as CSV and PDF * add ProjectTableRow component * dynamically load rules on init * enable download CSVs on menu with CSVLink * enable print PDF on menu with PdfPrint * switch cursor to hand/pointer on menu * update trash and copy icons to use SVG * add ProjectRowTable tests for conditional state * updated svg icons to use title for testing and a11y * all tests need "await waitFor" * fixed tests for tdm-engine, NavBar, and Level0Page.test.jsx * npm test now passes * fixed tests for postPublicComment * skipped tests for PublicComentPage * cleanup some cruftiness while debugging ResizeObserver error
- Loading branch information
1 parent
bae9631
commit 4c16478
Showing
18 changed files
with
22,830 additions
and
26,188 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
import React from "react"; | ||
import { createRoot } from "react-dom/client"; | ||
import { render, screen } from "@testing-library/react"; | ||
import NavBar from "./NavBar"; | ||
import { BrowserRouter as Router } from "react-router-dom"; | ||
import "@testing-library/jest-dom"; | ||
|
||
it("renders without crashing", () => { | ||
const container = document.getElementById("root"); | ||
const root = createRoot(container); | ||
root.render( | ||
render( | ||
<Router> | ||
<NavBar setNavbarOpen={jest.fn} account={{ email: "some-email" }} /> | ||
</Router> | ||
); | ||
expect(root).toBeDefined(); | ||
expect(screen.getByText("About")).toBeInTheDocument(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
client/src/components/ProjectWizard/WizardPages/Level0Page.test.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.