arya2004/cmt-autofill

Expand popup.test.js with real interaction coverage

Aperta

#32 aperta il 7 ott 2025

 (2 commenti) (0 reazioni) (2 assegnatari)JavaScript (11 fork)auto 404
chrome-extensionfeature-requestgood first issuehacktoberfestintermediatejavascriptrefactortesting

Metriche repository

Star
 (6 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Problem

Tests for popup.js are minimal and do not cover button clicks, storage callbacks, or edge cases.

Suggested Improvements

  • Simulate clicking #addAuthor, #saveAuthors, and .remove-author.
  • Verify DOM changes and storage interactions.
  • Add tests for loadProfile() and saving logic.
  • Handle edge cases like removing the last author.

Benefit

Covers user interactions and ensures the popup behaves reliably under real usage.

Guida contributor