Skip to content

E2E Test Failures: Prediction Workflow Timeouts and Assertions #137

@frankbria

Description

@frankbria

Problem

Prediction E2E tests are failing due to timeouts and assertion failures.

Failing Tests

  • should make single prediction with valid feature values
  • should display confidence score with prediction
  • should make single prediction within 100ms (performance test)

Error Patterns

  1. Timeout waiting for prediction results:

    TimeoutError: locator.waitFor: Timeout 10000ms exceeded.
    - waiting for prediction results to appear
    
  2. Assertion failures:

    Error: expect(received).toBeTruthy()
    - prediction result expected but not received
    

Root Cause

The prediction workflow appears to be:

  1. Not completing successfully, OR
  2. Not displaying prediction results in UI, OR
  3. Taking too long to make predictions (>100ms)

Investigation Needed

  1. Check backend prediction endpoint (POST /api/v1/models/{id}/predict)
  2. Verify frontend PredictionPage displays results
  3. Check if model loading/inference is working
  4. Review prediction response format
  5. Investigate prediction performance (should be <100ms)

Related PR

#133 - Fixed E2E infrastructure issues

Environment

  • CI environment with mock OpenAI credentials
  • MongoDB running correctly
  • Backend health check passing

Acceptance Criteria

  • Predictions complete successfully
  • Prediction results appear in UI with confidence scores
  • Predictions complete within 100ms (performance requirement)
  • All prediction-related E2E tests pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions