// package.json
{
...,
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui"
},
...
}
// playwright.config.ts
export default defineConfig({
...,
use: {
/* Base URL to use in actions like `await page.goto('')`. */
baseURL: 'http://localhost:3000',
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
},
...
}) 
아이고 어렵다