Page MenuHomePhabricator

Cat-a-lot: test Special:MediaSearch feature
Closed, ResolvedPublic

Description

There is a Cat-a-lot version with support for Special:MediaSearch page. However, it would need user testing to be sure that it is working as expected before merging it to the production. The editing functionality should work, but testing is needed for Cat-a-lot and Vue.js interactions.

Source code

Howto test

  1. Login to Wikimedia Commons
  2. Removing current version of cat-a-lot from preferences.
  3. Add following line to your your personal common.js javascript file (example)
mw.loader.load('//commons.wikimedia.org/w/index.php?title=User:Zache/cat-a-lot-edit-libAPI.js&action=raw&ctype=text/javascript');
  1. Open Special:MediaSearch page
  2. Open Cat-a-lot interface from right bottom corner of the browser window

In Image tab

  1. Search something
  2. Select some files. See that the number of selections is correct
  3. Try "invert" and see that the number of selection is correct after inverting
  4. Try "select all" and see that the number of selection is correct after inverting
  5. Try "select none" and see that the number of selection is correct after inverting
  6. Select some files. See that the number of selections is correct
  7. Scroll down so that MediaSearch loads more files and select them. See that the number of selections is correct.
  8. Try "invert" and see that the number of selection is correct after inverting
  9. Test that selection works after using "Sort by" filter

Do same with other tabs: "Audio", "Video", "Other Media", "Categories and Pages"

When testing, please report which browser, browser version, and operating system you were using.

Event Timeline

Zache updated the task description. (Show Details)
Hridyesh_Gupta changed the task status from Open to In Progress.Feb 20 2025, 8:29 PM
Hridyesh_Gupta claimed this task.

Hello, I have completed the testing for the Cat-a-lot version with support for the Special:MediaSearch page. Below is a summary of my testing process and the results for each tab.

I searched for the topic "landscape" in each tab and performed the following actions:

  1. I selected some files, checked the number of selections and noted them.
  2. I used the "invert" function and noted the new selection count.
  3. Then, I used the "select all" function. I verified that the count of selected files plus the inverted count equaled the total loaded count, indicating that the functionality was working correctly.
  4. After that, I used "select none" function and also inverted the results to check the accuracy.

Here are the results for each tab after testing:

TabTotal LoadedSelectedAfter InvertAfter Select AllAfter Select None
Images1192396Worked PerfectlyWorked Perfectly
Audio791663Worked PerfectlyWorked Perfectly
Video12020100Worked PerfectlyWorked Perfectly
Other Media15810148Worked PerfectlyWorked Perfectly
Categories & Pages16012148Worked PerfectlyWorked Perfectly
  • I also tried different filters like Sort By, License and File Type, and the results remained consistent.
  • Also I tried some other cases, when I clicked the "Load More" button to load more media and check the count again.

The functionality for selecting, inverting, and filtering worked accurately across all tests.

  • Browser: Google Chrome
  • Browser Version: 133.0.6943.126
  • Operating System: Windows 11 (64-bit)

@Zache I have tested this functionality:

Search Query: "Dragon"
Total Results Loaded: 224 (with the ability to load more)
Filters Tested: License, File Type, Image Size, Community Assessments, Sort By

Selection Functionality:
Selected multiple files, and the selection count was accurate.
Tested the Invert Selection feature-selection count updated correctly.
Used Select All-all files were selected correctly.
Used Select None-selection count reset to zero correctly.
Scrolled down to load additional files, selected them, and verified the count—everything functioned properly.

Audio Testing:
Loaded 40 audio files and verified selection functions (Select All, Invert, Select None)—all worked correctly.
Applied all available filters (License, File Type, Sort By)—filters functioned as expected.

Video Testing:
Searched for "Dragon" in the Video category.
Applied two filters: Any Assessment and Sort by Recency.
Received the message:
"We didn't find any results. Try more general terms or check your spelling."
Then try all none and invert shows 0 selected
This confirms functionality working perfectly.

Other Media, Categories, and Pages:
Tested the selection functionality (Select All, Invert, Select None)—all worked as expected.

System Info:
Browser: Brave (Chromium Based)
Browser Version: 1.75.180
Operating System: Windows 11 (x64
)

Conclusion:
Selection features (Select All, Invert, Select None) are working correctly across all categories.

Suggestion:

Everything is working perfectly, but I noticed something awkward. When selecting only one file, it displays "one file selected" instead of "1 file selected", while all other numbers (e.g., 0, 2, 435) are shown as digits.

Technically, "one file selected" is correct because "one" is singular, and when no files or multiple files are selected, it correctly displays "files selected", which is great. However, for consistency, should we display "1 file selected" instead what you think

I made the edit request on Wikimedia Commons so this would be updated to the production version of Cat-a-lot.

Thank you very much for your help!

And now it is in production. Below is relevant diffs to different pages which were done when it was moved to production

Zache awarded a token.