Files
plex-playlist/frontend/tests/e2e/app.spec.ts
Cliff Hill 8aa8d41e8a
Some checks failed
CI/CD Pipeline / Backend Tests (Python) (push) Has been cancelled
CI/CD Pipeline / Frontend Tests (TypeScript/Vue) (push) Has been cancelled
CI/CD Pipeline / Integration Tests (push) Has been cancelled
Did some things, made more improvements.
Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
2025-10-19 21:35:02 -04:00

36 lines
837 B
TypeScript

/**
* 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)
})
})