Skip to content

E2E Testing Overview

The E2E test suite verifies the complete data flow of the Magic PIM platform:

Supplier Connectors → APLT Tables → Medusa Products → Tenant Databases

It runs automated tests against the live database and APIs, captures screenshots of results, and publishes a dashboard with per-phase status.


The tests follow the same 4-phase structure as the E2E Flow Verificatie Plan:

PhaseNameWhat it verifies
1Connector → APLTProduct counts, data quality, duplicate SKUs, sync freshness, stock per supplier
1bTranslationsDutch (NL) translation coverage for product names, descriptions, materials, techniques
2APLT → MedusaProduct sync, variant mapping, tiered pricing, image associations
3Tenant DB UpdatesRecord counts, cross-validation, sales channel associations across all tenants
4Stock LevelsStock freshness, quantity anomalies, PIM↔tenant parity
5Storefront UIHomepage, product listing/detail, search, cart, categories on brinxx.magiceverse.online (with video)

LayerPurposeTools
Data verificationSQL queries to verify data pipeline correctnessPlaywright + pg (direct PostgreSQL)
API verificationCall admin API endpoints, verify sync statusPlaywright request API
Platform UINavigate storefront pages with video + screenshotsPlaywright browser (Phase 5)
/mnt/data/magic_pim/e2e/ ← Test project
├── tests/ ← Test specs (per phase)
├── helpers/ ← DB, API, screenshot helpers
├── scripts/
│ ├── run-e2e.sh ← Run tests + deploy
│ ├── deploy-report.sh ← Deploy report to subdomain
│ └── generate-dashboard.py ← Generate plan dashboard
├── playwright.config.ts ← Playwright config
└── nginx/ ← Nginx config for subdomain
e2etest.magiceverse.online/ ← Live dashboard
├── index.html ← Plan-level dashboard (auto-generated)
├── latest/ ← Playwright HTML report
└── history/ ← Archived previous runs
Terminal window
cd /mnt/data/magic_pim/e2e
# Run all phases
bash scripts/run-e2e.sh
# Run specific phase
bash scripts/run-e2e.sh phase1
bash scripts/run-e2e.sh phase4
# Run tests only (no deploy)
npx playwright test
# Deploy report + dashboard only
bash scripts/deploy-report.sh

CodeSupplierProductsStockTranslations
01Spranz❌ No stock in APLTN/A (Dutch source)
04XD Connect❌ No stock in APLT✅ Required
05PF Concept❌ No stock in APLT✅ Required
06MidOcean✅ Required
07Toppoint✅ (has negative qty issues)✅ Required
09NewWaveNot yet tested✅ Required