mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-29 04:14:30 +00:00
feat(workflow-e2e): add E2E tests for agentAutofillMedia workflow
- Setup E2E package under packages/e2e - Use testcontainers to spin up postgres and temporal dev server - Overwrite activities in global registry to mock AI model output - Track temporal workers and expose shutdownWorkers() method for clean shutdown - Integrate test:e2e:workflow into root package.json and GitHub actions CI
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
||||
"test": "bun --bun vitest run",
|
||||
"test:e2e": "playwright test",
|
||||
"test:e2e:workflow": "WORKFLOW_EXECUTOR=local bun --bun vitest run -c packages/e2e/vitest.config.ts && WORKFLOW_EXECUTOR=temporal bun --bun vitest run -c packages/e2e/vitest.config.ts",
|
||||
"test:e2e:ui": "playwright test --ui",
|
||||
"test:e2e:report": "playwright show-report",
|
||||
"test:e2e:install": "playwright install --with-deps",
|
||||
|
||||
Reference in New Issue
Block a user