Add Cypress E2E tests with fixture-based API mocking for UI regression protection

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-05 20:10:04 +08:00
parent 676b70caa0
commit 733bfd7509
13 changed files with 480 additions and 1 deletions

View File

@@ -6,10 +6,11 @@ module.exports = defineConfig({
viewportWidth: 1280,
viewportHeight:720,
e2e: {
baseUrl: "http://localhost:5173",
specPattern: "cypress/e2e/**/*.{cy,spec}.{js,jsx,ts,tsx}",
},
includeShadowDom: true,
env: {
loginPwd: 'REDACTED-PWD',
// Removed hardcoded password — use cypress.env.json for real credentials
}
});