# Instructions

- Following Playwright test failed.
- Explain why, be concise, respect Playwright best practices.
- Provide a snippet of code with the fix, if possible.

# Test info

- Name: mega_verify.spec.js >> Empirical Mega Verification
- Location: test/mega_verify.spec.js:3:1

# Error details

```
Error: page.evaluate: TypeError: Cannot read properties of null (reading 'querySelectorAll')
    at eval (eval at evaluate (:302:30), <anonymous>:3:27)
    at UtilityScript.evaluate (<anonymous>:304:16)
    at UtilityScript.<anonymous> (<anonymous>:1:44)
```

# Page snapshot

```yaml
- generic [ref=e2]:
  - heading "AutoForm Mega Test & Function Showcase" [level=2] [ref=e3]
  - generic [ref=e4]:
    - generic [ref=e7]: 1. Vertical Mode
    - generic [ref=e9]:
      - generic [ref=e11]:
        - generic [ref=e12]: 2. Responsive Horizontal
        - generic [ref=e13]: Try shrinking the window!
      - generic [ref=e16]: 2b. Forced Horizontal
  - generic [ref=e18]:
    - heading "3. Inline Mode Scenarios" [level=4] [ref=e19]
    - generic [ref=e20]:
      - heading "Toolbar (No label, with action)" [level=6] [ref=e22]
      - heading "Compact Config (With labels, no button)" [level=6] [ref=e25]
  - generic [ref=e27]:
    - generic [ref=e28]: Live Data Sync Debug
    - generic [ref=e30]: "{ \"t\": \"Apigo\", \"s\": \"1\", \"c\": [ \"Apple\" ], \"sw\": false, \"cp\": \"#0d6efd\", \"range\": \"2026-01-01\", \"rangeEnd\": \"2026-12-31\" }"
```