Skip to content

v5.4.0 E2E Testing Sprint

Choose a tag to compare

@njueeRay njueeRay released this 01 Mar 05:06
· 31 commits to main since this release

E2E 测试基础设施 Playwright

Added

  • playwright.config.ts:Chromium Desktop + iPhone 13,webServer CI/local 双模式
  • e2e/home.spec.ts(4 tests):标题 / Nav 链接 / Hero / 主题切换
  • e2e/blog.spec.ts(8 tests):Filter Tab / 文章卡片 / 详情页 / ShareLinks / OG meta
  • e2e/navigation.spec.ts(4 tests):路由跳转 / data-theme 切换 / hamburger aria-expanded
  • e2e/accessibility.spec.ts(6 tests):skip-link / main landmark / html lang / 404 / Team / Tags
  • .github/workflows/e2e.yml:PR/push 触发,CI 仅跑 chromium-desktop,失败上传报告
  • package.json 新增 test:e2e / test:e2e:ui / test:e2e:ci 三条脚本

Stats

  • 测试文件:4 个
  • 测试用例:22 个
  • 覆盖页面:首页 / 博客列表 / 文章详情 / 导航 / a11y / 404 / Team / Tags
  • astro check:0 errors 0 warnings
  • build:58 页构建成功