I haven't written formal tests for this. If you want to, then I'd happily accept that pull request... ha.
Anyways, here are the things I'd check if I had made a big change. (The answers should all be "yes".)
index.html:
- Do search indices in document_sets.json that exist in ElasticSearch have links on index.html?
- Are search indices in document_sets.json that exist in ElasticSearch ranked by ascending "sort_order"?
- Do search indices in ElasticSearch that are not in document_sets.json appear at the bottom (under "Document sets that aren't ready for widespread use yet")?
- Do search engines marked "private" in document_sets.json not show up anywhere on the index page?
- Do sample searches show up correctly if specified in document_sets.json?
- Do links to search engines work?
- Do links to sample searches work?
- Stevedore header link works
search.html:
- If you search for something, do you get results?
- If you search for something that isn't there, do you get 0 results?
- If you search for something with >50 results, does the More results button work?
- If you the a document set has a non-blob template chosen, is the correct template (email or user-defined) used for the search form?
- If you make a search, then refresh the page, is the search preloaded?
- If you click on a result, is the document pulled up in the modal?
- If you click on a result, are newlines in the document returned correctly?
- If you click on a result, are links to the original document displayed (in blob)?
- If you click on a result, are attachments displayed (in email.template)?
- If you click on a result for a document set with a non-blob template chosen, is the correct template (email or user-defined) used?
- If you click on a result, then refresh the page, is the result preloaded?
- If you click on a result, then click off the modal, is the search still there (and in the URL bar)?
- If there are any analyses (like the EmailSenderAnalysis) do those work?
- Are saved searches prepopulated in the saved search bar?
- Does clicking on a saved search work?
- If you click on a result, then press the arrow keys, does it load the next result? (And does the page scroll downward to that result's scrollTop?)
- Stevedore header link works