Add frontend testing - Playwright

This commit is contained in:
Urtzi Alfaro
2025-11-14 07:46:29 +01:00
parent a8d8828935
commit 4215026d61
21 changed files with 3071 additions and 0 deletions

View File

@@ -11,6 +11,12 @@
"test": "vitest",
"test:ui": "vitest --ui",
"test:coverage": "vitest --coverage",
"test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui",
"test:e2e:headed": "playwright test --headed",
"test:e2e:debug": "playwright test --debug",
"test:e2e:report": "playwright show-report",
"test:e2e:codegen": "playwright codegen http://localhost:5173",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"format": "prettier --write \"src/**/*.{js,jsx,ts,tsx,json,css,md}\"",
"storybook": "storybook dev -p 6006",
@@ -59,6 +65,7 @@
"zustand": "^4.5.7"
},
"devDependencies": {
"@playwright/test": "^1.56.1",
"@storybook/addon-essentials": "^7.6.0",
"@storybook/addon-interactions": "^7.6.0",
"@storybook/addon-links": "^7.6.0",