Skip to content

Conversation

@konard
Copy link
Collaborator

@konard konard commented Oct 25, 2025

Summary

This PR adds comprehensive integration tests that verify the ability to download Wikipedia pages in all supported formats using both browser engines.

Changes Made

  • ✅ Added new integration test file: tests/integration/wikipedia-download.test.js
  • ✅ Updated jest.config.mjs to include integration tests in the test suite
  • ✅ Tests verify downloading Wikipedia page (https://en.wikipedia.org/wiki/Wikipedia) in three formats:
    • HTML content
    • Markdown conversion
    • PNG screenshot

Test Coverage

The tests cover all supported browser engines:

Puppeteer Engine:

  • ✅ Download Wikipedia page as HTML
  • ✅ Convert Wikipedia page to Markdown
  • ✅ Capture Wikipedia page as PNG screenshot

Playwright Engine:

  • ✅ Download Wikipedia page as HTML
  • ✅ Convert Wikipedia page to Markdown
  • ✅ Capture Wikipedia page as PNG screenshot

Engine Comparison:

  • ✅ Verify both engines can successfully download Wikipedia content

Test Results

All tests pass successfully (7 tests total):

PASS tests/integration/wikipedia-download.test.js (178.047 s)
  Wikipedia Page Download Tests
    Puppeteer Engine
      ✓ can download Wikipedia page as HTML (16803 ms)
      ✓ can download Wikipedia page as Markdown (44582 ms)
      ✓ can capture Wikipedia page as screenshot (image) (50553 ms)
    Playwright Engine
      ✓ can download Wikipedia page as HTML (10521 ms)
      ✓ can download Wikipedia page as Markdown (18991 ms)
      ✓ can capture Wikipedia page as screenshot (image) (8246 ms)
    Engine Comparison
      ✓ both engines can download Wikipedia content successfully (21372 ms)

Test Suites: 1 passed, 1 total
Tests:       7 passed, 7 total

Fixes

Closes #8


🤖 Generated with Claude Code

Adding CLAUDE.md with task information for AI processing.
This file will be removed when the task is complete.

Issue: undefined
@konard konard self-assigned this Oct 25, 2025
Add comprehensive integration tests that verify the ability to download
Wikipedia pages (https://en.wikipedia.org/wiki/Wikipedia) in all three
formats (HTML, Markdown, and screenshot) using both Puppeteer and
Playwright browser engines.

Test coverage includes:
- Downloading Wikipedia page as HTML (both engines)
- Converting Wikipedia page to Markdown (both engines)
- Capturing Wikipedia page as PNG screenshot (both engines)
- Comparing content download across both engines

Also updated jest.config.mjs to include integration tests in the test
suite.

Fixes #8

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@konard konard changed the title [WIP] Add test that we can actually download Wikipedia page (markdown + image) in all our supported engines Add Wikipedia page download test for all supported engines Oct 25, 2025
@konard konard marked this pull request as ready for review October 25, 2025 08:21
@konard
Copy link
Collaborator Author

konard commented Oct 25, 2025

🤖 Solution Draft Log

This log file contains the complete execution trace of the AI solution draft process.

📎 Log file uploaded as GitHub Gist (279KB)
🔗 View complete solution draft log


Now working session is ended, feel free to review and add any feedback on the solution draft.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add test that we can actually download Wikipedia page (markdown + image) in all our supported engines

1 participant