Cypress error

cy.request() failed trying to load: http://localhost:3000/api/... ECONNREFUSED

The API server that cy.request() is calling isn't reachable at that host/port.

Why this happens

How to fix it

  1. Add a health-check step in CI that confirms the API is up before running the suite
  2. Verify the baseUrl/env var used to build the request URL matches where the API actually listens