Skip to content

Add Playwright e2e for analytics portfolio PDF digest download #726

Description

@king-aj-the-first

GitHub labels: Stellar Wave

Drips complexity: Medium (100 points)

Area: Testing

Description

Analytics PDF digest export exists with unit tests, but no e2e verifies the download button in a real browser.

Requirements and Context

CI should catch regressions where export button is disabled or download fails silently.

Suggested Execution

git checkout -b test/e2e-analytics-digest-export
  1. Create branch test/e2e-analytics-digest-export
  2. Connect mock wallet with positions
  3. Navigate to /analytics
  4. Click PDF export and assert download event
  5. Keep spec under 30s headless

Example commit message

test(e2e): add analytics portfolio PDF digest download spec

File Paths

  • e2e/analytics.spec.ts
  • app/analytics/page.tsx
  • lib/portfolioDigestPdf.ts

Guidelines

  • Assignment required before starting
  • PR description must include: Closes #<issue_number>
  • Run npm run lint, npm run type-check, npm run test, and npm run build before opening PR
  • Add screenshots or recordings for UI changes
  • Complexity: Medium (100 points) — focused test coverage work

Acceptance Criteria

  • Spec passes headless in CI
  • Download event or filename asserted
  • Uses existing mock wallet helpers
  • No flaky waits over 30s
  • Skips gracefully when portfolio empty in mock

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions