callstack / callstack/agent-device
test(ios): add live system permission-prompt accept/dismiss/recovery journey
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- TypeScript
- Star
- 4.7k
- Fork
- 303
- Merge trung bình
- 10 giờ 42 phút
- Pull request đã merge (30 ngày)
- 493
Mô tả
Purpose
Add the one remaining live iOS system-permission journey that fixture-backed simulator coverage cannot replace: native permission-prompt accept, dismiss, and recovery through the public CLI.
#1408 already owns and enforces the fixture-app smoke/full split, stable selectors, cold deep links, keyboard lifecycle, background/foreground resume, modal handling, interrupted system UI, long-list recovery, host-focus preservation, and catalog-level command coverage. Existing Settings/system-app coverage remains additive and must not be removed.
Required journey
Using the repository fixture app on an iOS simulator:
- Reset one real OS permission to an undecided state and launch the app path that requests it.
- Prove
alert getobserves the native system prompt and exposes actionable buttons. - Exercise dismissal/denial through the public
alertcommand and verify the prompt is gone plus the app/session remain usable. - Reset to undecided, trigger the prompt again, accept it through the public command, and verify the granted native permission state plus continued app interaction.
- Exercise the no-prompt recovery case and require the documented typed outcome rather than a hang, stale modal route, or leaked session/device ownership.
Do not substitute a fixture-owned modal or synthetic alert: the test must cross the SpringBoard/native permission boundary.
Observable completion
- The journey runs in the appropriate iOS simulator E2E lane against an exact built fixture artifact.
- Assertions cover the native permission state, prompt disappearance, app usability after each branch, and clean session/lease teardown.
- The test is observed red with one relevant production or test invariant deliberately broken before the final green run.
- Focused checks and the affected gate pass; GitHub remains authoritative for the exact-head native lane.
Non-goals
- Migrating or deleting existing Settings/system-app replays.
- Re-testing fixture behaviors already owned by #1408.
- Broad permission-matrix coverage across every permission type; one representative real native prompt is sufficient for this contract.
Depends on the existing fixture build/install infrastructure from #1408.
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.
Hướng nghiên cứu
Bắt đầu bằng cách đọc hạ tầng build/install của fixture từ #1408 và các replay Settings/system-app hiện có. Chạy lane E2E phù hợp của trình mô phỏng iOS đối với ứng dụng fixture đã build và truy vết public alert command. Được xem là hoàn tất khi tất cả đều pass: các assertion về native accept và dismissal, khả năng recovery không cần prompt, việc tiếp tục sử dụng ứng dụng và teardown session/lease sạch sẽ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- ios, typescript
- Lĩnh vực
- cli, mobile-dev, testing
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 38/100