Skip to content

Add E2E integration tests for AI detection flow #2

@Edmon02

Description

@Edmon02

Description

Expand test coverage with end-to-end integration tests that exercise the full AI detection pipeline.

Proposed Tests

  • Provider integration: Mock LLM responses and verify the full scan → detect → cache → remove flow
  • Options page UI: Puppeteer/Playwright tests for the AI settings tab (key entry, model search, save/load)
  • Content script injection: Verify ai-scanner.js and video-ad-interceptor.js are injected correctly
  • Empty space collapse: Load pages with ad-like structures and verify DOM cleanup
  • Video ad bypass: Test main-world patch against mock player instances

Current Coverage

62 unit tests pass across 4 AI modules. Integration/E2E tests are missing.

Labels

testing, ai-detection

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions