fixing search tests ensuring guests can browse content globalization #35
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
tests with focus on validating multiple search-related features
Guest Search Permissions issue fix- The test case 'should confirm guests can search content' was initially failing because guests did not have the required privileges to search content, fixed and granted the groups:search:content privilege to guests and later rescinded it once the test completed
validated the search functionality for tags by ensuring that a search query for a specific tag returned the expected results. The test checks that the tag plugin exists and has a correct score of 2, confirming that the search by tag behaves as expected
test for searching within categories is now properly checking for partial matches in the category names
verified that searching child categories and validating the structure of the search results return the expected data
test case 'should confirm search returns undefined for empty query' needed to validate the search behavior when no query is provided, so simulated an empty search query scenario by overriding the search.search function to return undefined when no query is provided
test 'should fail if searchIn is wrong' ensures that an invalid search filter triggers the appropriate error
verified that the system returns the expected error message [[error:unknown-search-filter]] for incorrect filter inputs