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:
yiling
2026-07-15 10:14:59 +08:00
parent 8efc9c1865
commit b018fd0fec
10 changed files with 387 additions and 14 deletions
+27 -13
View File
@@ -37,7 +37,7 @@
},
"apps/agent": {
"name": "@shumai/agent-app",
"version": "0.1.8",
"version": "0.1.9",
"bin": {
"shumai-agent": "./src/index.ts",
},
@@ -49,7 +49,7 @@
},
"apps/cli": {
"name": "@shumai/cli",
"version": "0.1.8",
"version": "0.1.9",
"bin": {
"shumai-cli": "./src/index.ts",
},
@@ -64,7 +64,7 @@
},
"apps/transcode": {
"name": "@shumai/transcode-app",
"version": "0.1.8",
"version": "0.1.9",
"bin": {
"shumai-transcode": "./src/index.ts",
},
@@ -76,7 +76,7 @@
},
"apps/web": {
"name": "@shumai/web-app",
"version": "0.1.8",
"version": "0.1.9",
"dependencies": {
"@shumai/agent": "workspace:*",
"@shumai/api": "workspace:*",
@@ -96,7 +96,7 @@
},
"packages/agent": {
"name": "@shumai/agent",
"version": "0.1.8",
"version": "0.1.9",
"dependencies": {
"@anthropic-ai/sandbox-runtime": "0.0.52",
"@earendil-works/pi-agent-core": "0.78.0",
@@ -120,7 +120,7 @@
},
"packages/api": {
"name": "@shumai/api",
"version": "0.1.8",
"version": "0.1.9",
"dependencies": {
"@hono/zod-validator": "0.7.6",
"@shumai/core": "workspace:*",
@@ -134,7 +134,7 @@
},
"packages/core": {
"name": "@shumai/core",
"version": "0.1.8",
"version": "0.1.9",
"dependencies": {
"@earendil-works/pi-agent-core": "0.78.0",
"@shumai/db": "workspace:*",
@@ -162,7 +162,7 @@
},
"packages/db": {
"name": "@shumai/db",
"version": "0.1.8",
"version": "0.1.9",
"dependencies": {
"@earendil-works/pi-agent-core": "0.78.0",
"@prisma/adapter-pg": "7.8.0",
@@ -178,19 +178,31 @@
},
"packages/dtos": {
"name": "@shumai/dtos",
"version": "0.1.8",
"version": "0.1.9",
"dependencies": {
"@earendil-works/pi-agent-core": "0.78.0",
"zod": "4.4.3",
},
},
"packages/e2e": {
"name": "@shumai/e2e",
"version": "0.1.9",
"dependencies": {
"@shumai/agent": "workspace:*",
"@shumai/core": "workspace:*",
"@shumai/db": "workspace:*",
"@shumai/dtos": "workspace:*",
"@shumai/transcode": "workspace:*",
"@shumai/workflow-core": "workspace:*",
},
},
"packages/tableprinter": {
"name": "@shumai/tableprinter",
"version": "0.1.8",
"version": "0.1.9",
},
"packages/transcode": {
"name": "@shumai/transcode",
"version": "0.1.8",
"version": "0.1.9",
"dependencies": {
"@shumai/core": "workspace:*",
"@shumai/db": "workspace:*",
@@ -204,7 +216,7 @@
},
"packages/webui": {
"name": "@shumai/webui",
"version": "0.1.8",
"version": "0.1.9",
"dependencies": {
"@base-ui/react": "1.5.0",
"@dnd-kit/abstract": "0.4.0",
@@ -301,7 +313,7 @@
},
"packages/workflow-core": {
"name": "@shumai/workflow-core",
"version": "0.1.8",
"version": "0.1.9",
"dependencies": {
"@shumai/core": "workspace:*",
"@shumai/db": "workspace:*",
@@ -1010,6 +1022,8 @@
"@shumai/dtos": ["@shumai/dtos@workspace:packages/dtos"],
"@shumai/e2e": ["@shumai/e2e@workspace:packages/e2e"],
"@shumai/tableprinter": ["@shumai/tableprinter@workspace:packages/tableprinter"],
"@shumai/transcode": ["@shumai/transcode@workspace:packages/transcode"],