Skip to content

fix(e2e): read ports from project config instead of hardcoding #3775

Closed

Description

@PierreBrisorgueil

Problem

E2E tests hardcode localhost:3000 (API) and localhost:8080 (Vue) in three places:

  • playwright.config.js — baseURL and webServer port
  • src/lib/helpers/e2e/auth.js — signup/signin API calls
  • src/lib/helpers/e2e/api.js — const API = 'http://localhost:3000/api'

The project config system (generateConfig.js) already supports per-project ports via NODE_ENV={project} configs (e.g. Lou uses 3010/8010), but E2E files don't read from it.

This causes all downstream project E2E tests to fail locally since they run on different ports.

Expected behavior

  • playwright.config.js should run generateConfig then import the generated config to read port and api.port
  • E2E helpers should build API URLs from the config (api.protocol, api.host, api.port, api.base)
  • Running NODE_ENV=lou npx playwright test should work on ports 3010/8010 automatically

Files

  • playwright.config.js
  • src/lib/helpers/e2e/auth.js
  • src/lib/helpers/e2e/api.js

Activity

  1. added 2 commits that reference this issue on Mar 25, 2026
    b64e4f0
    ec56d20
  2. added a commit that references this issue on Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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