Skip to content
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

Unselecting or selecting a sub-category scrolls back to the top of the list when switching from search to browse mode #2349

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions doajtest/testbook/public_site/subject_facet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ tests:
Chemical Technology)
results:
- The subject and any parents are selected in the facet
- The search box clears
- The facet status hasn't changed - the search query is still visible in the search box and the tree is filtered
- step: Enter another search of 3 or more characters, which will also return the
values you selected in the previous step (e.g. "Bio")
results:
Expand All @@ -113,14 +113,17 @@ tests:
- step: Select another subject from another part of the tree (e.g. Medicine)
results:
- All your subjects and any parents are selected in the facet
- The search box clears
- The facet status hasn't changed - the last search query is displayed in the input field and the tree is filtered
- step: Enter your second search again (e.g. "Bio")
- step: Unselect one of the subjects you had previously selected (e.g. Chemical
Technology)
results:
- Your second subject is still present (e.g. Medicine) and any parents of the
subject you unselected are still present (e.g. Technology)
- The search box clears
- The facet status hasn't changed - the last search query is displayed in the input field and the tree is filtered
- step: Enter a long random string into the search box
results:
- A message is displayed "No subjects match your search"
- step: Remove a string from the search box
results:
- The facet shows all subjects with all levels folded
Loading
Loading