npm init playwright@latest
# Choose: JavaScriptplaywright.config.js// playwright.config.js
import { defineConfig, devices } from "@playwright/test";export default defineConfig({
testDir: "./tests",
fullyParallel: true,
reporter: "html",
use: {
baseURL: "https://targetqa.com",
trace: "on-first-retry",
},
projects: [
{ name: "chromium", use: { ...devices["Desktop Chrome"] } },
],
});