Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Updates navigation.spec.ts #966

Merged
merged 4 commits into from
Sep 27, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions e2e/pages/shared-lending-platform/Navigation.spec.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { expect } from '@playwright/test';
import { test } from '../../fixtures/testFixture';

test('Navigation', async ({ page }) => {
test('Navigation', async ({ page, navigateToFilingHome }) => {
test.slow();

navigateToFilingHome;

await test.step('Main Navigation', async () => {
// Test Filing Link
await page
Expand Down Expand Up @@ -234,10 +236,11 @@ test('Navigation', async ({ page }) => {
.locator('.navbar .links')
.getByRole('button', { name: 'LOG OUT' })
.click();

await expect(page.locator('h1')).toContainText(
'Get started filing your lending data',
);
await expect(page.locator('.navbar .nav-items')).toBeEmpty();
await expect(page.locator('.navbar .nav-items')).toHaveCount(0);

// Test CFPB Logo Link
await page.getByLabel('Home').click();
Expand Down