-
-
Notifications
You must be signed in to change notification settings - Fork 30
Checklist for Uli Browser extension
- 1. Open service worker console
- 2. Check DOM features
- 3. Test Personal Slur list
- 4. Try contributing from the context menu without login
- 5. Login
- 6. Test Crowdsourcing
- 7. Syncing Data and Other IndexedDB-related testing
The following tests will be performed on the ULI browser extension after loading it in Chrome and Firefox browsers.
The prerequisite for the following testing is that the uli-community server is up and running.
The following tests are for the development bundle of the extension.
To test out the production bundle, load it in the browsers and repeat the same steps.
Note:
- While testing in the production bundle, if any slur is crowdsourced, delete it after checking that the contribution functionality works.
- For the production bundle, while testing the 7th step, just check the logs after clicking on the "Download slurs" button. Further checking for syncing (by adding and deleting entries in the database) testing would not be possible.
On loading the extension, open the service worker console and check the logs. If everything was set up properly, the logs related to database initialization and the addition of new entries (if any) will be shown.
Next, check the "Enable Slur Replacement" and "Enable Slur Metadata" features.
Check for the words present in the database (plugin_slur_metadata and plugin_slurs tables). For testing purposes, a new common word can also be added to the local database.
For example, the word "crazy" is present in the seeding script for both tables, so these features can be tested for this word.
In case, if new changes were made in the functionalities of these features (for example any style-related change or DOM-related change), please test these features on multiple different websites. Some of the links for the testing are:
1) https://www.reddit.com/r/EnglishLearning/comments/179zoxf/strongest_curses_swear_words_and_phrases/
2) https://www.reddit.com/r/TwoXIndia/comments/12eq26b/girls_what_are_really_bad_slurs_names_that_your/
3) https://www.reddit.com/r/india/comments/5lim6o/dear_india_whats_your_favorite_insultabuse_phrase/
4) https://www.reddit.com/r/india/comments/iis87h/what_are_some_indian_swear_words/
5) https://www.instagram.com/p/CPaEJHHt6XA/
6) https://x.com/KapilMishra_IND/status/1514915548001636353 AND https://www.theguardian.com/world/2015/may/26/french-journalist-poses-muslim-convert-isis-anna-erelle
7) https://en.wikipedia.org/wiki/Hindustani_profanity AND https://www.reddit.com/r/DHHMemes/comments/1e7oc6q/madarchod/
8) https://www.instagram.com/sammyjames7/reel/CloP2PCJt3X/
Apart from these URLs, testing on different websites can also be done. A new common word can also be added to the database locally to make the testing easier.
Try adding some words to the personal slur list. Save the list and then enable the slur-replacement feature. Test for the added words if the slur-replacement feature is working or not.
Close the extension and open it again. Go to the personalized slur list to see if the previously added words still exist or not. If everything works as expected, the previously added words should appear.
This step requires that the user is not logged in.
Select a word on the webpage, and right-click on it to open the context menu. On context-menu select the "Add slur to Uli" option.
If everything works properly, an alert should appear with the following message:
"Please login to Uli Browser Extension to contribute"
In the extension, go to the "My Contributions" section. There, a button with the text Login to Contribute
should appear instead of anything else.
This step requires an account in the uli-community (here, it means in the local setup). If an account hasn't been created, a new account can be created at http://localhost:4000/users/register
.
In the extension, go to the "Account" section and log in with the uli-community credentials.
Next, go to the "My Contributions" section again. Now, adding a new slur would be allowed and the past contributions (if any) would also be visible.
Try adding a new slur from the context menu once again. Select a word and right-click on it, then select "Add Slur to Uli". Now, the contribution should be done successfully. An alert message would also be shown confirming the contribution. Check this contribution in the "My Contributions" section.
In "My Contributions", try to add new contributions, edit previous contributions and check if everything is updating correctly or not.
To test the syncing, keep the service worker's console open on the side to observe all the logs while syncing.
Click on the "Download New Crowdsourced Slurs" button in the "Preferences" section and observe the logs.
If no new slurs were added since the installation, the logs "No new slurs to add" and "No new slur metadata entries added" would be shown.
To test the syncing further in case there have been changes in the background script or other indexedDB-related changes, please add some new entries in the “plugin_slur_metadata” and “plugin_slurs” tables in the database locally. Then do the sync again to see if new entries were added.
Try to test the features on the new entries. For example, if a new word "abc" is added to the database, try searching for this word and see after syncing, if the feature works for this word or not.
To further confirm the new entries, the IndexedDb can also be checked. In Chrome, it can be seen by inspecting the popup. In Firefox, it is visible in the service worker developer tools itself.
Additionally, try deleting some words from the database and then after syncing, see if the features still work on the deleted words or not. After deletion, the features should not work for the deleted words.
- About Us
- Our Team
- Contributing to Uli
- Code of Conduct
- Internal Communications
- FAQs
- Curated Issues and Proposals for beginners
- Contributing Code
- Monitoring Issues and Triaging
- Helping review PRs
- Helping with QA
- Helping with Translations
- Sponsor Tattle
- 16 Days of Activism
- Mitigating Harms of Digitally Manipulated Images
- Setup Uli on Windows for Chrome
- Setup Uli on Windows for Chrominum Browsers (Brave, Kiwi etc)
- Setup Uli on Windows for Firefox
- Setup Uli on Windows for Firefox for Android
- Setup Uli on Linux for Chrome
- Setup Uli on Linux for Firefox
- Setup Uli on Linux for Firefox for Android
- Setup Uli on Linux for for Chromium Browsers(Kiwi, Brave etc)