This document outlines the optimizations made for VibeTunnel’s Playwright tests, designed to work efficiently with the single-server, system-wide session architecture.
test('reuse sessions from pool', async ({ sessionPool, page }) => { // Get pre-created session const session = await sessionPool.acquire(); // Use session for testing await page.goto(`/sessions/${session.id}`); // Return to pool for next test await sessionPool.release(session.id);});
# Run all tests (sequential)pnpm test:e2e# Run specific test grouppnpm test:e2e --grep "light"# Run with detailed timingpnpm test:e2e --reporter=list# Debug slow testsPWDEBUG=1 pnpm test:e2e