Skip to content

CI: Implement Automated Unit and End-to-End Testing Workflows #2927

Description

@arii
Original Issue Body

Description

Currently, jest and playwright tests are not running in CI.

Task

  1. Modify pr-quality-standalone.yml (or create ci.yml).
  2. Add a step to run unit tests: pnpm test.
  3. Add a step to run E2E tests if applicable.
  4. Ensure deploy.yml requires the test job to pass before executing deployment.

Auto-generated via RepoAuditor CI Health Analysis.

Original Issue


Title: ci: enable automated unit and E2E testing in workflows
Body:

Description

Currently, jest and playwright tests are not running in CI.

Task

  1. Modify pr-quality-standalone.yml (or create ci.yml).
  2. Add a step to run unit tests: pnpm test.
  3. Add a step to run E2E tests if applicable.
  4. Ensure deploy.yml requires the test job to pass before executing deployment.

Auto-generated via RepoAuditor CI Health Analysis.

Refined Description

Automated testing is a critical component of our CI/CD pipeline, ensuring code quality and preventing regressions. Currently, our continuous integration workflows are not executing jest for unit tests and playwright for end-to-end (E2E) and visual regression tests.

Proposed Changes

To address this, the following steps are required:

  1. Workflow Configuration: Update the existing pr-quality-standalone.yml workflow, or create a new dedicated ci.yml workflow, to manage automated testing jobs.
  2. Unit Test Integration: Add a specific step to run unit tests using the pnpm test command. This will execute all configured jest tests within the CI environment.
  3. E2E Test Integration: Integrate end-to-end and visual regression tests. As per the project features, Playwright is used for screenshot-based testing, so this step should execute the relevant Playwright test command (e.g., pnpm test:e2e or similar).
  4. Deployment Gate: Establish a dependency in deploy.yml to ensure that the deployment workflow only proceeds if all automated test jobs (unit and E2E) have successfully passed. This will act as a crucial quality gate for releases.

Rationale

Implementing these automated tests in CI will significantly improve the reliability and stability of our releases, align with our 'Production Readiness Focus,' and help detect issues early in the development cycle, reducing the risk of critical bugs reaching production.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions