-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Test failure] <TC_LEARNER_5C>: Discovery search doesn't let you clear query after no results found #400
Comments
Thank you for the report! This seems to be the actual behavior of the course catalog page. Here's the implementation that appears to manage this functionality: https://github.com/openedx/edx-platform/blob/open-release/sumac.master/lms/static/js/discovery/models/search_state.js#L85-L116. So, when the service handling the search (discovery) doesn't return results for the query, like in this case, the list of courses is displayed unfiltered. I also tested this in the Redwood sandbox to confirm this, and it also happens there. Since this appears to be the expected behavior, I’ll go ahead and close this issue. Thanks again! |
So the test sheet says:
But the current implementation clears the filter automatically, so technically it doesn't allow the user to do so. As far as I'm concerned, this is working as expected but the actual behavior differs from what's documented. @crathbun428, what do you think we should do? Can we update the test sheet to reflect this, or should this happen instead of clearing it automatically? FYI @angonz |
From my perspective, as a regular user, I prefer that a search with an empty result shows an empty list, and a message stating that the search did not return any result, together with a component to reset the search. I think that it is confusing if an empty search returns the full list of courses. |
@angonz - I agree with you, but since what we see here is existing behavior, we'd need to do some work to make this change (showing only a message that there are no results returned for the search term) happen. However, I also think it's ok as long as there is some space between the No results message and the list of courses that are available on the instance so that the user doesn't think the courses listed match their search. If we were to make a change - I'd like someone from our UI/UX WG to weigh in. @mariajgrimaldi - thank you for pointing this out. We can remove this issue since it's an issue with the how the test was written and not a failure introduced with sumac. I'll update the test now to read that you can only clear the search term if it returned results - not possible with no matches. |
@crathbun428: thank you for clarifying! I'm closing this issue now. Thank you all :) |
Release
Sumac
Expected behavior
If the result you are looking for does not exist, it should be able to be cleaned and should not show any results below the "We couldn't find any results" message.
Actual behavior
If the result you are looking for does not exist, it does not allow you to clear it, and continues to show all the courses below the "We couldn't find any results" message.
Steps to reproduce
Additional information
No response
The text was updated successfully, but these errors were encountered: