mirror of
https://github.com/kiwix/libkiwix.git
synced 2026-05-24 06:44:54 -04:00
Got rid of static/templates/no_search_result.html
The "Fulltext search unavailable" error page is now generated using the static/templates/error.html template. Also added two test cases checking that error page.
This commit is contained in:
committed by
Matthieu Gautier
parent
dbcbdff275
commit
ae1bf39023
@@ -686,6 +686,18 @@ TEST_F(ServerTest, 404WithBodyTesting)
|
||||
Cannot find content entry invalid-article
|
||||
</p>
|
||||
)" },
|
||||
|
||||
{ /* url */ "/ROOT/search?content=poor&pattern=whatever",
|
||||
expected_page_title=="Fulltext search unavailable" &&
|
||||
expected_css_url=="/ROOT/skin/search_results.css" &&
|
||||
book_name=="poor" &&
|
||||
book_title=="poor" &&
|
||||
expected_body==R"(
|
||||
<h1>Not Found</h1>
|
||||
<p>
|
||||
The fulltext search engine is not available for this content.
|
||||
</p>
|
||||
)" },
|
||||
};
|
||||
|
||||
for ( const auto& t : testData ) {
|
||||
|
||||
Reference in New Issue
Block a user