mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[PR #1738] [MERGED] Consolidate Chrome test helpers across all plugin tests #4500
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#4500
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ArchiveBox/ArchiveBox/pull/1738
Author: @pirate
Created: 12/31/2025
Status: ✅ Merged
Merged: 12/31/2025
Merged by: @pirate
Base:
dev← Head:claude/reduce-chrome-duplication-JgWVr📝 Commits (6)
65c8390Consolidate Chrome test helpers across all plugin testsef92a99Refactor test_chrome.py to use shared helpers7d74dd9Add Chrome CDP integration tests for singlefiled72ab7cAdd simpler Chrome test helpers and update test filesadeffb4Add JS-Python path delegation to reduce Chrome-related duplication1cfb77aRename Python helpers to match JS function names in snake_case📊 Changes
15 files changed (+978 additions, -701 deletions)
View changed files
📝
archivebox/plugins/chrome/chrome_utils.js(+128 -13)📝
archivebox/plugins/chrome/tests/chrome_test_helpers.py(+637 -55)📝
archivebox/plugins/chrome/tests/test_chrome.py(+14 -59)📝
archivebox/plugins/dom/tests/test_dom.py(+14 -21)📝
archivebox/plugins/favicon/tests/test_favicon.py(+8 -3)📝
archivebox/plugins/istilldontcareaboutcookies/tests/test_istilldontcareaboutcookies.py(+8 -149)📝
archivebox/plugins/mercury/tests/test_mercury.py(+9 -4)📝
archivebox/plugins/pdf/tests/test_pdf.py(+13 -20)📝
archivebox/plugins/readability/tests/test_readability.py(+8 -4)📝
archivebox/plugins/screenshot/tests/test_screenshot.py(+12 -20)📝
archivebox/plugins/singlefile/on_Snapshot__50_singlefile.py(+3 -21)📝
archivebox/plugins/singlefile/tests/test_singlefile.py(+97 -4)📝
archivebox/plugins/title/tests/test_title.py(+8 -3)📝
archivebox/plugins/twocaptcha/tests/test_twocaptcha.py(+11 -170)📝
archivebox/plugins/ublock/tests/test_ublock.py(+8 -155)📄 Description
Summary
Related issues
Changes these areas
Summary by cubic
Consolidated Chrome test helpers and centralized path/Chrome logic to chrome_utils.js, removing duplicated code across plugin tests and adding reliable helpers for launching and cleaning up Chrome. Tests are simpler, more consistent, and add SingleFile CDP coverage.
New Features
Refactors
Written for commit
1cfb77a355. Summary will update on new commits.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.