Chrome-compatible extension for hiding and showing groups of Google calendars.
To verify that all calendars are being collected correctly (including those hidden by virtualization):
- Load the extension in Chrome (
chrome://extensions→ Load unpacked) - Open Google Calendar
- Open DevTools (F12 or Cmd+Option+I)
- Go to the Console tab
- Copy the contents of
tests/calendar-collection.test.jsand paste into the console - Run:
runCalendarCollectionTests()
The test will:
- Verify the sidebar is found
- Count calendars before and after scrolling
- Report the total number of calendars collected
- List all calendar names found
Expected output shows passed/failed tests and total calendar count. If scrolling reveals additional calendars beyond the initially visible ones, the test confirms the scroll-based collection is working.
To run the popup functionality tests with mocks:
- Open any webpage in Chrome
- Open DevTools (F12 or Cmd+Option+I)
- Go to the Console tab
- Copy the contents of
tests/popup.test.jsand paste into the console - Tests will auto-run and display results
The tests cover:
- Group name validation (length, characters, duplicates)
- Group operations (add, remove, activate, deactivate)
- Group switching behavior
- Group reordering
- Calendar visibility logic
- Operation locking mechanism
- URL validation
- State persistence