test: add commit and diff search e2e regression tests
Created by: rvantonder
https://github.com/sourcegraph/sourcegraph/pull/7634 caused a nil dereference in prod. The function in question was not covered by any tests, and e2e tests were green.
This adds tests that covers the search path for commit
and diff
searches.