Add end-to-end tests for the service worker update and the pack-changed replay dialog
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 58/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- playwright, typescript
Hướng nghiên cứu
Read the PWA design in docs/adr/0006-offline-first-pwa-on-github-pages.md, then inspect apps/web/e2e/play.spec.ts and the referenced service worker, PWA service, and game screen files. First check how the existing CI e2e job runs Playwright and how it serves builds or intercepts routes. Done means both flows pass in that job, covering the update toast, reload and cache cleanup, plus full and partial replay results.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Context
A broken service worker can pin players to a broken version (ADR 0006). The update toast has no automated test, and the dialog that replays a save against a changed pack is only unit-tested.
Scope
- Update flow: serve build A, visit it, then serve build B with a different content hash. Expect the "New version available" toast, no change before the player reloads, build B after reload, and old caches deleted.
- Replay flow: autosave in a pack, then load it with a changed version of the pack. One case where every move replays, one where a move is rejected; expect the dialog and the "n of m moves replayed" result.
- Fixtures: two builds, or route interception that serves a modified sw.js and pack.
Acceptance criteria
- The update test covers toast, reload and cache cleanup.
- The replay test covers full and partial replay.
- Both tests run in the CI e2e job.
References
- apps/web/src/sw.ts
- apps/web/src/services/pwa.ts
- apps/web/src/screens/game.ts
- apps/web/e2e/play.spec.ts
- docs/adr/0006-offline-first-pwa-on-github-pages.md
- Ngôn ngữ chính
- TypeScript
- Star
- 0
- Fork
- 0
- Merge trung bình
- 28 phút
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nullthrone/lexvm
-
area: web good first issue priority: low type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
nullthrone/lexvm#49 ·
-
area: infra good first issue priority: low type: chore
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
nullthrone/lexvm#41 ·
-
area: engine good first issue priority: low type: feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
nullthrone/lexvm#27 ·
-
area: web priority: low type: research
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
nullthrone/lexvm#63 ·
-
area: infra area: web priority: medium type: chore
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 38/100
nullthrone/lexvm#62 ·
Tất cả issue của nullthrone/lexvm
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
braintrustdata/braintrust-sdk-javascript#2659 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
body-parser 2.3.0 in the published ai-dial-chat-bff image is vulnerable (CVE-2026-111181, HIGH)Có thể đã có người làm @illya-havsiyevych đã nhận hôm nay. Đang mởbug
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 87/100
epam/ai-dial-chat#9566 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 1 ngày
-
はさみアイコンを修正するĐang mởbug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
-
resource.reload() while params is in error switches the resource to 'idle' instead of retryingĐang mởarea: core
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày