Skip to content

Commit

Permalink
fix: Updates navigation.spec.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
shindigira committed Sep 25, 2024
1 parent 7f79db4 commit ca2e5e4
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 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,13 +236,6 @@ 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();

// Test CFPB Logo Link
await page.getByLabel('Home').click();
await expect(page).toHaveURL('https://www.consumerfinance.gov/');
await expect(page.locator('.navbar .nav-items')).toHaveCount(0);
});
});

0 comments on commit ca2e5e4

Please sign in to comment.