Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Commit b891ac1

Browse files
committed
add an e2e test for using areas
1 parent f2d0ba1 commit b891ac1

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

e2e/addArea.test.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { expect, test } from '@playwright/test';
2+
import { addArea, start } from './utils';
3+
4+
test('you can add an area and navigate to it', async ({ page }) => {
5+
await start(page);
6+
7+
// Add the area and make sure it shows up in the sidebar
8+
await addArea(page, 'Work');
9+
await expect(page.getByRole('navigation', { name: 'areas' }).getByRole('link')).toContainText(
10+
'Work',
11+
);
12+
13+
// Go to the area and check that the heading is correct
14+
await page.getByRole('link', { name: 'Work' }).click();
15+
await expect(page.getByRole('heading', { name: 'Work' })).toBeVisible();
16+
});

0 commit comments

Comments
 (0)