# Nightly Test Summary — 2026-07-04 (IST)

**2ND CONSECUTIVE MASS-FAILURE NIGHT — infra/environment root cause, not app regressions** (1354/1636 failed, 83%)

- Run: `test_reports/nightly_20260703.json` (marker date=20260703, exit_code=1)
- Run window: startTime 2026-07-03T18:45:05Z (00:15 IST Jul 4) → finished_at 2026-07-03T19:29:14Z (00:59 IST Jul 4) — ~44min duration
- Totals: **1636 total, 240 passed, 1354 failed, 42 skipped, 0 flaky**
- Prior night (2026-07-02→03) was also a mass failure, unbaselined — see `test_reports/nightly_summary_20260702.md`

## Root causes identified this run

1. **Playwright browser binary missing** — 2068 of the underlying failure instances (spread across nearly every spec file) throw:
   `Error: browserType.launch: Executable doesn't exist at /root/.cache/ms-playwright/chromium_headless_shell-1223/chrome-headless-shell-linux64/chrome-headless-shell`
   → Playwright was updated/reinstalled without re-running `npx playwright install`. No app code was exercised for these tests at all.
2. **Pages served wrong/fallback content** — remaining ~640 failure instances get an unexpected `"<!DOCTYPE HTML..."` (or `undefined`) where a specific string/JSON field was expected (e.g. contacts.spec.js expecting `id="auth-screen"`, `TM_IDS`, `new Dexie('contacts360')`; counters.spec.js expecting `💬 Comments`). This matches the same "server/DB/proxy unreachable" signature from the prior night's summary — not independent per-app regressions.

## Failing spec files (all 36 spec files had failures; top 20 by failure count)

| Spec file | Failures |
|---|---|
| fundcustodian.spec.js | 172 |
| recce.spec.js | 140 |
| printing.spec.js | 94 |
| sales_billing.spec.js | 82 |
| upi_pay.spec.js | 76 |
| vendors.spec.js | 74 |
| drive_consolidator.spec.js | 72 |
| safe_bottom.spec.js | 66 |
| customers.spec.js | 50 |
| custodian.spec.js | 48 |
| counters.spec.js | 40 |
| recce_client.spec.js | 38 |
| sales.spec.js | 38 |
| hr.spec.js | 36 |
| smoke.spec.js | 34 |
| hub.spec.js | 30 |
| stores.spec.js | 26 |
| tour_pg.spec.js | 24 |
| vehicle.spec.js | 22 |
| admin.spec.js | 20 |

(16 more spec files also failed, 6–20 failures each: rentveh, expense, yagya-portfolio, contacts, finance, installation, learn, tour_planner, oc_admin, production, vrs, activity, client, dispatch, debug_tour, mappls-creds.)

## Baseline comparison

Trusted baseline remains **2026-06-20: ~1220+ tests, 186 skipped, 0 failed** (`project_pwa_test_coverage.md`). This run and the 2026-07-02→03 run are both mass-failure infra outages, not re-baselined — the 2026-06-20 numbers remain the comparison baseline until a clean run against a verified-up dev environment is confirmed.

## Action needed (not performed by this autonomous task)

- Run `npx playwright install` (or `--with-deps`) to restore the missing chromium_headless_shell-1223 binary.
- Verify the dev server / DB / proxy stack is up and reachable before the next nightly run.
