Skip to content

Bug Report: Fix E2E Tests for ERD Schema Refactor Compatibility #150

@NahomAlemu

Description

@NahomAlemu

Describe the Bug

The ERD schema refactor introduced breaking changes that caused E2E test failures. This issue tracks the fixes needed for test compatibility.

Root Causes:

  1. Backend renamed eventTags to tagNames in CreateActivityDto
  2. Delete event endpoint changed from DELETE /events/:id to DELETE /events/remove/:id

Changes needed:

  • Update e2e/utils/api-client.ts - Fixed delete endpoint path
  • Update e2e/tests/event-management.spec.ts - Change eventTags to tagNames in all API calls

Additional Optimization:

  • Implemente tiered E2E testing strategy to reduce CI pipeline time
  • Add @smoke tags to critical tests for quick validation on non-critical PRs
  • Add test sharding for parallel execution on full suite runs

Steps to Reproduce

E2E test fails during PR and locally.

Expected Behavior

  • All smoke tests pass locally
  • Full E2E suite passes in CI
  • Pipeline completes in reasonable time

Visual Aids

Expand ⬇️ Image

Desktop or Mobile Info

No response

Related Issues

PR #142

Additional Context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtestingGeneral QA or testing setup

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions