Skip to content

Commit

Permalink
add simple help page e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
codyzu committed Feb 15, 2024
1 parent 18f4fc5 commit 5ae64c4
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions src/pages/help.e2e.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import {test, expect} from '../test/coverage-fixture';

test('can navigate to the help page from the nav bar', async ({page}) => {
await page.goto('/');

const presentationList = page.getByRole('list', {
name: /presentations/i,
});

await expect(
presentationList.getByText('A Presentation for Testing'),
).toBeVisible();

await page.getByRole('button', {name: 'Help'}).click();

await expect(page.getByText('What is Slidr?')).toBeVisible();
});

test('can navigate to the help page the getting started button', async ({
page,
}) => {
await page.goto('/');

const presentationList = page.getByRole('list', {
name: /presentations/i,
});

await expect(
presentationList.getByText('A Presentation for Testing'),
).toBeVisible();

await page.getByRole('button', {name: 'Getting Started'}).click();

await expect(page.getByText('What is Slidr?')).toBeVisible();
});

0 comments on commit 5ae64c4

Please sign in to comment.