add mobile nav toggle

This commit is contained in:
2024-10-12 00:53:39 -05:00
parent a5780c2f67
commit 5acb6af50a
7 changed files with 86 additions and 7 deletions

11
tests/desktop.test.ts Normal file
View File

@@ -0,0 +1,11 @@
import { expect, test } from '@playwright/test';
test('desktop page has nav tree', async ({ page }) => {
await page.goto('/');
await expect(page.locator('nav')).toBeVisible();
});
test('desktop page does not have nav toggle', async ({ page }) => {
await page.goto('/');
await expect(page.locator('nav button')).toBeHidden();
});