Files
tolaria/e2e/app.spec.ts
lucaronin 7d5c48c2a8 Add unit and E2E tests for all panel components
- Vitest tests for Sidebar, NoteList, Inspector (7 tests)
- Playwright E2E tests verifying four-panel layout renders (2 tests)
- All tests passing: cargo test (10), pnpm test (7), pnpm test:e2e (2)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 18:25:11 +01:00

19 lines
604 B
TypeScript

import { test, expect } from '@playwright/test'
test('app loads with four-panel layout', async ({ page }) => {
await page.goto('/')
// Verify the four panels are present
await expect(page.locator('.sidebar')).toBeVisible()
await expect(page.locator('.note-list')).toBeVisible()
await expect(page.locator('.editor')).toBeVisible()
await expect(page.locator('.inspector')).toBeVisible()
})
test('sidebar shows navigation items', async ({ page }) => {
await page.goto('/')
await expect(page.getByText('Laputa')).toBeVisible()
await expect(page.getByText('All Notes')).toBeVisible()
})