Migrate from Cypress to Playwright

This commit is contained in:
Przemek Więch
2026-05-06 11:51:30 +02:00
parent 664ca69fb3
commit d427300ddf
28 changed files with 740 additions and 1403 deletions

View File

@@ -46,6 +46,7 @@
"@formatjs/fast-memoize": "^2.2.6",
"@formatjs/intl": "^2.10.15",
"@jest/globals": "^29.7.0",
"@playwright/test": "^1.59.1",
"@types/adm-zip": "^0.5.0",
"@types/array.prototype.flatmap": "^1.2.2",
"@types/d3-array": "^3.2.1",
@@ -60,12 +61,12 @@
"@types/js-cookie": "^3.0.6",
"@types/lunr": "^2.3.3",
"@types/md5": "^2.3.0",
"@types/node": "^25.6.0",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@vitejs/plugin-react": "^4.3.4",
"cypress": "^13.17.0",
"eslint": "^7.32.0",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.1.1",
@@ -75,7 +76,6 @@
"prettier": "^3.8.3",
"prettier-plugin-organize-imports": "^4.1.0",
"run-script-os": "^1.1.6",
"start-server-and-test": "^2.0.9",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"typescript": "^5.7.3",
@@ -86,16 +86,15 @@
"start": "vite",
"build": "tsc && vite build",
"test": "jest",
"prettier": "prettier --write \"src/**/*.{ts,tsx,json}\"",
"lint": "eslint src --ext .ts,.tsx",
"prettier": "prettier --write \"{src,tests}/**/*.{ts,tsx,json}\"",
"lint": "eslint src tests --ext .ts,.tsx",
"predeploy": "npm run build",
"deploy": "gh-pages -d dist",
"predeploy-wikitree": "npm run build",
"deploy-wikitree": "./deploy-wikitree.sh",
"cy:run": "cypress run",
"cy:start-and-run": "run-script-os",
"cy:start-and-run:default": "BROWSER=none start-server-and-test start localhost:3000 cy:run",
"cy:start-and-run:windows": "set BROWSER=none && start-server-and-test start localhost:3000 cy:run"
"preview": "vite preview",
"test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui"
},
"homepage": ".",
"browserslist": [