/** * End-to-end tests using Playwright */ import { test, expect } from '@playwright/test' test.describe('Plex Playlist App', () => { test('should display app title', async ({ page }) => { await page.goto('/') await expect(page.locator('h1')).toContainText('Plex Playlist') }) test('should have welcome message', async ({ page }) => { await page.goto('/') await expect(page.locator('p')).toContainText('Welcome to the Plex Playlist Manager') }) test('should load without errors', async ({ page }) => { const errors: string[] = [] page.on('console', (msg) => { if (msg.type() === 'error') { errors.push(msg.text()) } }) await page.goto('/') // Wait for app to fully load await page.waitForLoadState('networkidle') expect(errors).toHaveLength(0) }) })