trips) add playwright e2e flows and issue video upload guidance
All checks were successful
PR Checks / lint-test-and-docker-build (pull_request) Successful in 2m27s
All checks were successful
PR Checks / lint-test-and-docker-build (pull_request) Successful in 2m27s
This commit is contained in:
@@ -31,6 +31,14 @@
|
||||
- Framework: Vitest with `node` environment.
|
||||
- Test file pattern: `src/**/*.test.ts`.
|
||||
- Keep tests near the code they cover; use `src/tests/stubs` for runtime stubbing.
|
||||
- For every user-facing feature or behavior change, add/update Playwright e2e coverage under `e2e/`.
|
||||
- When work is tied to a Gitea issue, record an e2e run video and upload it to that issue.
|
||||
- One-off video run: `PW_VIDEO_MODE=on PW_TRACE_MODE=on bunx playwright test <spec>`
|
||||
- Prefer comment-level attachments: post a comment first, then upload the video to that comment.
|
||||
- Create comment: `tea comment -l <login> -r <owner>/<repo> <issue-index> "<message>"`
|
||||
- Upload with `curl` (example, `tea api` in this repo's toolchain does not send multipart correctly):
|
||||
- `TOKEN=$(awk '/- name: cloud.campbellwireless.net/{f=1} f && $1=="token:"{print $2; exit}' "$HOME/Library/Application Support/tea/config.yml")`
|
||||
- `curl -fsS -X POST "https://cloud.campbellwireless.net/git/api/v1/repos/{owner}/{repo}/issues/comments/{comment_id}/assets" -H "Authorization: token $TOKEN" -F "name=<filename>" -F "attachment=@<path>"`
|
||||
|
||||
## Commit & Pull Request Guidelines
|
||||
- Commit messages currently follow a light “scope) message” pattern, e.g.,
|
||||
|
||||
Reference in New Issue
Block a user