# Raw CDP Windows Stability Evidence

- Generated at: 2026-03-24 12:18:16 +08:00
- Scope: `frontend/admin` raw CDP Windows smoke stability after `chrome-headless-shell` crash-dialog and residual-process mitigation

## Commands Executed

```powershell
cd D:\project\frontend\admin
npm.cmd run e2e:auth-smoke:win
npm.cmd run e2e:smoke:win
```

## Auth Smoke Result

- Command exit: `0`
- `chrome-headless-shell` count before run: `76`
- `chrome-headless-shell` count after run: `76`
- Key output:
  - `login landing path: /users`
  - `user detail title: 用户详情`
  - `assign roles title: 分配角色 - e2e_admin`
  - `roles path: /roles`
  - `permissions title: 分配权限 - 管理员`
  - `dashboard path: /dashboard`
  - `logout path: /login`
  - `login-initial: 105ms`
  - `login-desktop: 194ms`
  - `login-tablet: 100ms`
  - `login-mobile: 90ms`

## Smoke Result

- Command exit: `0`
- `chrome-headless-shell` count before run: `76`
- `chrome-headless-shell` count after run: `76`
- Key output:
  - `protected dashboard redirect: /login (from=/dashboard)`
  - `protected users redirect: /login (from=/users)`
  - `login-initial: 89ms`
  - `login-desktop: 185ms`
  - `login-tablet: 119ms`
  - `login-mobile: 88ms`

## Mitigation Applied

- `frontend/admin/scripts/run-cdp-smoke.ps1`
  - added `--noerrdialogs`
  - added `--disable-breakpad`
  - added `--disable-crash-reporter`
  - added `--disable-crashpad-for-testing`

## Conclusion

- Raw CDP Windows `smoke` and `auth smoke` both exited successfully after mitigation.
- Current local `chrome-headless-shell` process count did not increase across either run.
- This closes the previously observed “business flow passes but command exits non-zero because of new leaked PID” gap for the current environment.
