# DISPATCH — test_writer_pc_e2e

## Objective
Design and implement the comprehensive E2E test suite (Tiers 1-4) in `tests/e2e/test_pc_desktop_client_e2e.py` specifically for the Dedicated PC Desktop Full-Screen Web Client (`client/web_pc/`) as required in `ORIGINAL_REQUEST.md` under section `## 2026-10-02T05:17:43Z`.
Publish `TEST_INFRA.md` and `TEST_READY.md`.

## Authoritative Inputs
- User Request: `c:\Projects\FreeExile\.agents\teamwork\ORIGINAL_REQUEST.md` (MUST read section `## 2026-10-02T05:17:43Z` - PC Desktop Full-Screen Web Client)
- Project Scope: `c:\Projects\FreeExile\.agents\teamwork\orchestrator_16\PROJECT.md`
- Implementation Handoff: `c:\Projects\FreeExile\.agents\teamwork\worker_m1\handoff.md`
- Survey Reports: `c:\Projects\FreeExile\.agents\teamwork\survey_explorer_2\handoff.md` and `survey_explorer_3\handoff.md`

## Write Ownership (Exclusive)
You exclusively own and may create/modify:
- `tests/e2e/test_pc_desktop_client_e2e.py`
- `c:\Projects\FreeExile\TEST_INFRA.md`
- `c:\Projects\FreeExile\TEST_READY.md`

**STRICT CONSTRAINT**: You MUST NOT modify any files in `client/web_pc/` or `client/webapp/`.

## Test Requirements (Opaque-Box Tiers 1-4)
- **Tier 1 - Feature Coverage**:
  - Test 100vw × 100vh canvas sizing with 0 scrollbars / no overflow.
  - Test 0 mobile simulator elements (`.iphone-frame`, `#simulator-bar`, touch joystick).
  - Test Left-click moves character accurately to target coordinates (`player.destination`).
  - Test Space triggers Huyễn Ảnh Bộ animation, 0.25s i-frame, and dodge state.
  - Test Q, W, E, R activate skills and cooldown overlays.
  - Test 1-5 activate flasks and cooldowns.
  - Test I, C, Esc open/close corresponding modals.
  - Test zero console JavaScript errors.
  - Test real-time reactive i18n language toggle without page reload.
  - Test mobile simulator at `client/webapp/index.html` continues normal operation.
- **Tier 2 - Boundary & Corner Cases**:
  - Continuous Hold-to-move dragging.
  - Rapid language switching across 9 languages.
  - Typographic / input focus guard (typing in chat does not trigger skill hotkeys).
  - Browser contextmenu suppression on right click.
- **Tier 3 - Cross-Feature Combinations**:
  - Click-to-move while casting skills or drinking flasks.
  - Opening Character sheet ('C') and Bag ('I') simultaneously without overlapping or breaking Click-to-Move.
- **Tier 4 - Real-World Application Scenario**:
  - Full player gameplay flow: move -> drink flask -> dodge -> cast skill -> toggle inventory -> switch language -> pause game.

## Verification
Run tests using:
`pytest tests/e2e/test_pc_desktop_client_e2e.py -v`
and verify with hygiene check `python tools/lint/check_code_and_doc_hygiene.py`.
Report all commands and outputs in `handoff.md` and notify via `send_message`.


## 2026-10-02T05:57:36Z
[Message] sender=7eb101bf-362e-46b0-81cc-0a9216617c39 priority=MESSAGE_PRIORITY_HIGH content=You are test_writer_pc_e2e.
Your working directory is: c:\Projects\FreeExile\.agents\teamwork\test_writer_pc_e2e\
Your dispatch instructions are at: c:\Projects\FreeExile\.agents\teamwork\test_writer_pc_e2e\DISPATCH.md
The authoritative user request is at: c:\Projects\FreeExile\.agents\teamwork\ORIGINAL_REQUEST.md (specifically header ## 2026-10-02T05:17:43Z for PC Desktop Full-Screen Client).

Design and implement the comprehensive E2E test suite (Tiers 1-4) in tests/e2e/test_pc_desktop_client_e2e.py.
Create TEST_INFRA.md and publish TEST_READY.md.
Run tests, verify 100% pass, and report back via send_message.
