Files
termi-blog/playwright-smoke/README.md
limitcool 3628a46ed1
Some checks failed
docker-images / resolve-build-targets (push) Successful in 7s
ui-regression / playwright-regression (push) Failing after 13m47s
docker-images / build-and-push (push) Failing after 7s
docker-images / submit-indexnow (push) Has been skipped
feat: add SharePanel component for social sharing with QR code support
- Implemented SharePanel component in `SharePanel.astro` for sharing content on social media platforms.
- Integrated QR code generation for WeChat sharing using the `qrcode` library.
- Added localization support for English and Chinese languages.
- Created utility functions in `seo.ts` for building article summaries and FAQs.
- Introduced API routes for serving IndexNow key and generating full LLM catalog and summaries.
- Enhanced SEO capabilities with structured data for articles and pages.
2026-04-02 14:15:21 +08:00

35 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Playwright 回归测试
## 本地运行
```powershell
cd playwright-smoke
pnpm install
pnpm test
```
或在仓库根目录直接执行:
```powershell
pnpm test:ui
```
## 可用脚本
- `pnpm test`:跑前台 + 后台全量回归
- `pnpm test:frontend`:只跑前台
- `pnpm test:admin`:只跑后台
- `pnpm test:headed`:有界面调试
## 设计说明
- 使用独立 `mock-server.mjs` 提供前台 SSR、前端交互、后台 CRUD 所需的稳定假数据。
- CI 不依赖真实数据库 / Rust 后端,适合做前后台 UI 回归。
- 每条用例开始前都会调用 mock reset避免数据串扰。
- 本地默认优先走已安装的 `msedge` channelCI 仍使用 `playwright install chromium`
- 当前已覆盖:
- 前台首页过滤、文章详情、评论、搜索、AI 问答、友链申请、订阅确认/管理/退订
- 前台 GEO 能力llms.txt / llms-full.txt 入口、分享面板、微信扫码分享、AI 摘要块
- 后台:登录、导航、评论审核、友链审核
- 后台深度回归:分类 CRUD、标签 CRUD、订阅 CRUD / 测试发送 / weekly & monthly digest、文章创建/保存/版本恢复/删除、媒体上传/元数据/替换/删除、站点设置保存 / 微信扫码分享开关 / AI 重建索引 / Provider 连通性 / 存储连通性、评测 CRUD / AI 润色、评论画像与黑名单管理