Details
-
Task
-
Resolution: Unresolved
-
Major
-
None
-
11.10.13
-
Unknown
-
Description
The manual test is here: Solr Add to Index
The test checks if add to index feature in Search from Administration works properly
Matrix discussion: https://matrix.to/#/!ikPtGZaGWtyblizzlR:matrix.xwiki.com/$1724330528616vRTfX:matrix.xwiki.com?via=matrix.org&via=matrix.xwiki.com&via=helsinki-systems.de
Ilie Andriuta: Hi! Continuing the manual tests migration, there is a test about checking if add to index feature in search from Administration works properly: https://test.xwiki.org/xwiki/bin/view/Administration%20Tests/Solr%20Add%20to%20Index. I've checked https://github.com/xwiki/xwiki-platform/blob/2a4f19ae290e48e30381dd97afd03f67e086ca0f/xwiki-platform-core/xwiki-platform-search/xwiki-platform-search-test/xwiki-platform-search-test-utils/src/main/java/org/xwiki/repository/test/SolrTestUtils.java but it seems I didn't find automated tests. Can you please confirm?
Thanks!
Vincent Massol: checking Ilie Andriuta
Vincent Massol: Ilie Andriuta: Note that SolrTestUtils is not a test, you need to check all test classes using it. I'm doing it
In practice the UI element is:
<select id="solrAdminAction" name="action"> <option value="index">Add to index</option> <option value="delete">Delete from index</option> <option value="reindex">Reindex</option> </select>
and there's no usage of "solrAdminAction" in any Page Object/test
so the answer is that we don't have a test for it
I also checked for "Add to Index" in tests
Ilie Andriuta: I searched on github by repo:xwiki/xwiki-platform solr add to index test and I got a few results, but the best one I could find was the one with SolrTestUtils
ok, I'll add a task
thanks, Vincent!