generated from cfpb/open-source-project-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding additional logic to configure what navbar options are available and under what circumstances they appear ## Changes - Updated the navbar links logic so that it shows the correct links on the correct pages - Added e2e test logic to validate that the navbar is configured correctly in a few different places ## How to test this PR 1. Verify that the pipeline is passing 2. Pull the branch 3. Launch/releaunch the stack as necessary 4. Access the non authenticated landing page 5. Verify that there are no navbar options 6. Login as an non-associated user 7. Verify that only the the logout nav option appears 8. Login as a full associated user 9. Navigate to the home page 10. Verify that the full nav options appear
- Loading branch information
1 parent
3f6eab3
commit 9c51143
Showing
4 changed files
with
72 additions
and
27 deletions.
There are no files selected for viewing
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
8 changes: 8 additions & 0 deletions
8
e2e/pages/shared-lending-platform/unauthenticated-homepage/NavMenu.spec.ts
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { expect, test } from '@playwright/test'; | ||
|
||
test('Unauthenticated homepage: Validate Nav Menu', async ({ page }) => { | ||
await test.step('Verify nav options', async () => { | ||
const navContainer = page.locator('nav#nav-links'); | ||
await expect(navContainer).not.toBeVisible(); | ||
}); | ||
}); |
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