Skip to content

Commit

Permalink
Change line breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
ProchaLu committed Aug 22, 2023
1 parent 652f5bd commit 6996fb0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions playwright/navigation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,23 @@ import { expect, test } from '@playwright/test';

test('Can find the different components in the app', async ({ page }) => {
await page.goto('/');

await expect(page.getByTestId('homePageTitle')).toBeVisible();
await expect(page.getByTestId('homePageLink')).toBeVisible();
await expect(page.getByTestId('portfolioPageLink')).toBeVisible();
await expect(page.getByTestId('contactPageLink')).toBeVisible();

await page.getByTestId('aboutPageLink').click();
await page.waitForURL('/about');

await expect(page).toHaveTitle('About');
await expect(page.getByTestId('pageTitle')).toHaveText('About');

await page.getByTestId('portfolioPageLink').click();
await page.waitForURL('/portfolio');

await expect(page).toHaveTitle('Portfolio');
await expect(page.getByTestId('pageTitle')).toHaveText('Portfolio');

await page.getByTestId('contactPageLink').click();
await page.waitForURL('/contact');

await expect(page).toHaveTitle('Contact');
await expect(page.getByTestId('pageTitle')).toHaveText('Contact');
});

0 comments on commit 6996fb0

Please sign in to comment.