mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-26 13:19:34 +07:00
* add e2e tests * fix workflow * update workflow * 🐛 fix(e2e): fix smoke tests i18n and timeout issues - Unify default port to 3006 across hooks.ts and world.ts - Reduce step timeout from 30s to 10s for faster feedback - Fix i18n matching for featured sections (support zh-CN/en-US) - Add mock framework foundation for future API mocking 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * 🐛 fix(e2e): save failure screenshots to file for CI artifacts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * 🐛 fix(e2e): move PORT to global env for consistent access 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * 🐛 fix(e2e): set onboarding as completed for test user Skip onboarding flow by setting finishedAt in test user seed
29 lines
1010 B
JSON
29 lines
1010 B
JSON
{
|
|
"name": "@lobechat/e2e-tests",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"description": "E2E tests for LobeChat using Cucumber and Playwright",
|
|
"scripts": {
|
|
"build": "cd .. && bun run build",
|
|
"test": "cucumber-js --config cucumber.config.js",
|
|
"test:ci": "bun run build && bun run test",
|
|
"test:discover": "cucumber-js --config cucumber.config.js src/features/discover/",
|
|
"test:headed": "HEADLESS=false cucumber-js --config cucumber.config.js",
|
|
"test:routes": "cucumber-js --config cucumber.config.js --tags '@routes'",
|
|
"test:routes:ci": "cucumber-js --config cucumber.config.js --tags '@routes and not @ci-skip'",
|
|
"test:smoke": "cucumber-js --config cucumber.config.js --tags '@smoke'"
|
|
},
|
|
"dependencies": {
|
|
"@cucumber/cucumber": "^12.2.0",
|
|
"@playwright/test": "^1.57.0",
|
|
"bcryptjs": "^3.0.3",
|
|
"pg": "^8.16.0",
|
|
"playwright": "^1.57.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^24.10.1",
|
|
"tsx": "^4.20.6",
|
|
"typescript": "^5.9.3"
|
|
}
|
|
}
|