(t *testing.T, haystack, needle string)
| 442 | } |
| 443 | |
| 444 | // --------------------------------------------------------------------------- |
| 445 | // Server-side verification helpers |
| 446 | // --------------------------------------------------------------------------- |
| 447 | |
| 448 | // fetchHTML fetches a page via HTTP using the session cookie and returns the |
| 449 | // raw HTML body. This is a lightweight alternative to browserPageText that |
| 450 | // avoids launching Chrome — suitable for cross-verifying server state after |
| 451 | // CLI mutations. |
| 452 | func fetchHTML(t *testing.T, url string) string { |
no test coverage detected