arya2004/cmt-autofill

Expand popup.test.js with real interaction coverage

開放

#32 建立於 2025年10月7日

 (2 則留言) (0 個反應) (2 位負責人)JavaScript (11 個分叉)auto 404
chrome-extensionfeature-requestgood first issuehacktoberfestintermediatejavascriptrefactortesting

倉庫指標

星標
 (6 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南