opentiny / opentiny/tiny-editor

希望完善 Playwright E2E 测试用例

Open
#40 0 comments 0 reactions 0 assignees View on GitHub

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

步骤:

  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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.