added cypress e2e test (using cypress-image-diff)

This commit is contained in:
prusswan
2025-01-28 23:33:36 +08:00
parent d6cde2fc0f
commit 40bfbef312
11 changed files with 1673 additions and 5 deletions

View File

@@ -11,6 +11,7 @@
"i18n:refresh": "i18next 'src/**/*.{ts,tsx,js,jsx}'",
"lint": "eslint",
"test": "cypress run",
"test1": "cypress run --spec cypress/e2e/local-file.cy.ts",
"cy:open": "cypress open",
"lint-css": "stylelint \"src/styles/*.scss\"",
"sort-styles": "jq 'sort_by(.id)' src/config/styles.json > tmp.json && mv tmp.json src/config/styles.json"
@@ -127,6 +128,9 @@
"@vitejs/plugin-react": "^4.3.4",
"cors": "^2.8.5",
"cypress": "^14.0.0",
"cypress-image-diff-html-report": "^2.2.0",
"cypress-image-diff-js": "^2.3.0",
"cypress-image-snapshot": "^4.0.1",
"cypress-plugin-tab": "^1.0.5",
"eslint": "^9.18.0",
"eslint-plugin-react": "^7.37.4",