Skip to content

Commit

Permalink
make help route unauthenticated cypress re-run
Browse files Browse the repository at this point in the history
  • Loading branch information
pearl-truss committed Sep 6, 2023
1 parent 5c304a5 commit 2052fb9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion services/app-web/src/pages/App/AppRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ const StateUserRoutes = ({
path={RoutesRecord.DASHBOARD}
element={<StateDashboard />}
/>
<Route path={RoutesRecord.HELP} element={<Help />} />

<Route
path={RoutesRecord.SUBMISSIONS}
Expand Down Expand Up @@ -186,6 +185,7 @@ const UnauthenticatedRoutes = ({
return (
<Routes>
<Route path={RoutesRecord.ROOT} element={<Landing />} />
<Route path={RoutesRecord.HELP} element={<Help />} />
{/* no /auth page for IDM auth, we just have the login redirect link */}
{authComponent && (
<Route path={RoutesRecord.AUTH} element={authComponent} />
Expand Down Expand Up @@ -256,6 +256,7 @@ export const AppRoutes = ({
const dontRedirectToAuthRoutes: (RouteT | 'UNKNOWN_ROUTE')[] = [
'ROOT' as const,
'AUTH' as const,
'HELP' as const,
'UNKNOWN_ROUTE' as const,
]
if (!loggedInUser) {
Expand Down
11 changes: 8 additions & 3 deletions services/app-web/src/pages/Landing/Landing.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { GridContainer, Grid } from '@trussworks/react-uswds'
import { GridContainer, Grid, Link } from '@trussworks/react-uswds'
import styles from './Landing.module.scss'
import { featureFlags } from '../../common-code/featureFlags'
import { useLDClient } from 'launchdarkly-react-client-sdk'
Expand Down Expand Up @@ -93,8 +93,13 @@ export const Landing = (): React.ReactElement => {
</li>
<li>Rate certifications and rate amendments</li>
<li>
Required supporting documents related to the
above
<Link
aria-label="Document definitions and requirements"
href={'/help#key-documents'}
>
Required supporting documents
</Link>{' '}
related to the above
</li>
</ul>

Expand Down

0 comments on commit 2052fb9

Please sign in to comment.