opentiny / opentiny/tiny-editor
希望完善 Playwright E2E 测试用例
Open
Nobody has claimed this yet.
e2e test
good first issue
- Dominant language
- TypeScript
- Stars
- 535
- Forks
- 71
- Avg merge
- 6h 50m
- Merged PRs (30d)
- 2
Description
步骤:
- Fork 项目并 Clone 代码到本地
- 执行
pnpm i安装项目依赖 - 执行
pnpm install:browser安装运行 E2E 测试用例的浏览器 - 执行
pnpm dev启动项目 - 在
packages/docs/flunet-editor/demos下面编写测试用例,用例文件名和demo文件名保持一致,参考:basic-usage.spec.ts - 编写完测试用例,执行
pnpm test跑全量用例,执行pnpm test basic-usage可以跑特定的用例
推荐安装 Playwright Test for VSCode 插件,可以录制并自动生成测试用例代码,帮助初学者快速上手测试用例。
具体使用方式可参考文章:https://juejin.cn/post/7409138396793061410
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in packages/docs/flunet-editor/demos and use basic-usage.spec.ts as the reference for Playwright E2E coverage. Run pnpm i, pnpm install:browser, and pnpm dev, then add tests whose filenames match the demos and verify them with pnpm test or pnpm test basic-usage; done means the targeted demos have working tests and the full suite passes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- playwright, typescript
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100