tududi/e2e
Antonis 4fa2aa91bf
Fix E2E test breakage (#380)
* Add logging placeholder functions, fix notes.js uids

* Add UIDs to inbox items. Includes migration.

* Add UID to users.

* Add project UIDs usage.

* Add script that runs specific E2E test(s)

* Only run Chromium E2E tests by default.

* Fix breaking E2E tests

* fixup! Fix breaking E2E tests

---------

Co-authored-by: antanst <>
Co-authored-by: Chris Veleris <chrisveleris@gmail.com>
2025-10-05 16:04:46 +03:00
..
bin Fix E2E test breakage (#380) 2025-10-05 16:04:46 +03:00
tests Fix E2E test breakage (#380) 2025-10-05 16:04:46 +03:00
.env.example Add Playwright scaffolding and example E2E test. 2025-08-09 22:22:43 +03:00
package-lock.json Add Playwright scaffolding and example E2E test. 2025-08-09 22:22:43 +03:00
package.json Add Playwright scaffolding and example E2E test. 2025-08-09 22:22:43 +03:00
playwright.config.ts Fix E2E test breakage (#380) 2025-10-05 16:04:46 +03:00
README.md Add Playwright scaffolding and example E2E test. 2025-08-09 22:22:43 +03:00

tududi E2E (Playwright)

End-to-end tests live in this isolated e2e/ folder. The suite uses Playwright and assumes the app is running locally.

Quick start

npm run test:ui

  1. Backend (with a test user):
TUDUDI_USER_EMAIL=test@tududi.com TUDUDI_USER_PASSWORD=password123 npm run backend:start
  1. Frontend dev server:
npm run frontend:dev
  1. E2E tests:
cd e2e
npm ci
npm run install-browsers
APP_URL=http://localhost:8080 E2E_EMAIL=test@tududi.com E2E_PASSWORD=password123 npm test
  • Only Chromium:
npx playwright test --project=Chromium
  • UI mode:
npm run test:ui

Notes

  • Base URL defaults to http://localhost:8080. Override with APP_URL.
  • The login smoke test fills Email/Password and expects redirect to /today.
  • Ensure a user exists. The backend start step above auto-creates/updates the user via env vars.