Add playwright browser test (#48)

* Add playwright

* Add test:browser command

* Remove test examples

* Add basic node tests

* Add drag node test

* Merge workflows

* nit

* Localize jest

* Add local config

* Change working dir

* Use consistent fonts

* Fix emoji fonts

* Update github action to save expectation

* update on test failure

* push to head

* Update test expectations [skip ci]

---------

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Chenlei Hu
2024-06-24 09:41:40 -04:00
committed by GitHub
parent 3ace859106
commit 51b925f7ef
13 changed files with 370 additions and 8 deletions

View File

@@ -9,12 +9,15 @@
"typecheck": "tsc --noEmit",
"test": "npm run build && jest",
"test:generate": "npx tsx tests-ui/setup",
"test:browser": "npx playwright test",
"preview": "vite preview"
},
"devDependencies": {
"@babel/core": "^7.24.7",
"@babel/preset-env": "^7.22.20",
"@playwright/test": "^1.44.1",
"@types/jest": "^29.5.12",
"@types/node": "^20.14.8",
"babel-plugin-transform-import-meta": "^2.2.1",
"babel-plugin-transform-rename-import": "^2.3.0",
"identity-obj-proxy": "^3.0.0",
@@ -28,6 +31,7 @@
"vite-plugin-static-copy": "^1.0.5"
},
"dependencies": {
"dotenv": "^16.4.5",
"zod": "^3.23.8",
"zod-validation-error": "^3.3.0"
}