Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望完善 Playwright E2E 测试用例 #40

Open
kagol opened this issue Sep 2, 2024 · 0 comments
Open

希望完善 Playwright E2E 测试用例 #40

kagol opened this issue Sep 2, 2024 · 0 comments
Labels

Comments

@kagol
Copy link
Member

kagol commented Sep 2, 2024

步骤:

  1. Fork 项目并 Clone 代码到本地
  2. 执行 pnpm i 安装项目依赖
  3. 执行 pnpm install:browser 安装运行 E2E 测试用例的浏览器
  4. 执行 pnpm dev 启动项目
  5. packages/docs/flunet-editor/demos 下面编写测试用例,用例文件名和demo文件名保持一致,参考:basic-usage.spec.ts
  6. 编写完测试用例,执行 pnpm test 跑全量用例,执行 pnpm test basic-usage 可以跑特定的用例

推荐安装 Playwright Test for VSCode 插件,可以录制并自动生成测试用例代码,帮助初学者快速上手测试用例。

具体使用方式可参考文章:https://juejin.cn/post/7409138396793061410

@kagol kagol pinned this issue Sep 2, 2024
@zzxming zzxming unpinned this issue Sep 7, 2024
@zzxming zzxming pinned this issue Sep 7, 2024
@kagol kagol added the e2e-test label Sep 9, 2024
@kagol kagol added the good first issue Good for newcomers label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant