diff --git a/README.md b/README.md index 7db937c4..0b4fc24b 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,6 @@ The following endpoints are currently available at http://localhost:3000/api/lan - [/photographs](http://localhost:3000/api/lanes/photographs) - [/prints-and-drawings](http://localhost:3000/api/lanes/prints-and-drawings) - [/recently-digitized-collections](http://localhost:3000/api/lanes/recently-digitized-collections) -- [/items](http://localhost:3000/api/lanes/items) ### Individual Lane - GET /api/lanes/[...slug] diff --git a/__tests__/featureditems.test.tsx b/__tests__/api/featureditems.test.tsx similarity index 100% rename from __tests__/featureditems.test.tsx rename to __tests__/api/featureditems.test.tsx diff --git a/__tests__/homepage.test.tsx b/__tests__/homepage.test.tsx index b692d158..f5955f38 100644 --- a/__tests__/homepage.test.tsx +++ b/__tests__/homepage.test.tsx @@ -17,4 +17,14 @@ describe("Home", () => { }); expect(header).toBeInTheDocument(); }); + + it("renders the expected text content", () => { + const { getByText } = render(); + expect(getByText("Notification banner")).toBeInTheDocument(); + expect(getByText("Header")).toBeInTheDocument(); + expect(getByText("First swim lane")).toBeInTheDocument(); + expect(getByText("Featured Content")).toBeInTheDocument(); + expect(getByText("Rest of swim lanes")).toBeInTheDocument(); + expect(getByText("Explore further links")).toBeInTheDocument(); + }); }); diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 9c100538..b3aada65 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,5 +1,24 @@ import CampaignHero from "../components/hero/campaignHero"; +import { + SkipNavigation, + TemplateAppContainer, +} from "@nypl/design-system-react-components"; export default function Home() { - return ; + return ( + Notification banner

} + header={

Header

} + breakout={} + contentPrimary={ + <> +

First swim lane

+

Featured Content

+

Rest of swim lanes

+

Explore further links

+ + } + renderSkipNavigation={true} + /> + ); }