Skip to content

Migrate lytics-playwright to use @lytics/playwright-core #7

Description

@prosdev

Branch: feat/migrate-to-playwright-core-packages

Priority: High

Estimate: 2-3 hours

Parent Epic: #1

Dependencies: #2, #3, #4

Description

Update lytics-playwright repository to consume packages from the @lytics/playwright-core monorepo instead of using internal reporter implementation. This completes the extraction and demonstrates that the new packages work as drop-in replacements with no loss of functionality.

Acceptance Criteria

  • All existing tests pass with new packages (100% pass rate)
  • No old reporter code remains in lytics-playwright repository
  • CI/CD pipeline works with new dependencies
  • Test execution performance is same or better (≤12 minutes)
  • Firestore reporting continues to work correctly (all collections populated)
  • Slack notifications continue to work correctly (messages sent on failure)
  • Documentation updated to reference new packages

Technical Requirements

  • Install @lytics/playwright-annotations, @lytics/playwright-reporter, @lytics/playwright-adapters-internal
  • Update reporter.ts to import and use CoreReporter from package
  • Update slack-reporter.ts to use SlackAdapter (if migrated)
  • Remove src/reporter/ directory entirely
  • Remove src/types/core.ts file
  • Update all test imports (if any reference reporter internals)
  • Run full regression suite to validate
  • Update CI/CD to authenticate with GitHub Packages (for internal packages)
  • Update README.md and internal docs

Notes

  • This is a breaking change for lytics-playwright but isolated to that repo
  • Should be done after all core packages are published and stable
  • Consider doing thorough QA in staging environment before production

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