import { chromium } from 'playwright' const browser = await chromium.launch() const page = await browser.newPage() const failed = [] page.on('response', (res) => { if (res.status() === 401) failed.push(res.url()) }) await page.goto('http://localhost:5173/login') await page.fill('#email', 'admin@stableplace.local') await page.fill('#password', 'ChangeMeNow!123') await page.click('button[type="submit"]') await page.waitForURL('http://localhost:5173/', { timeout: 10000 }) await page.waitForTimeout(1500) console.log('401s:', JSON.stringify(failed, null, 2)) await browser.close()