|
3 | 3 | # CI groups, which reuse the production build from `e2e-build`. |
4 | 4 | # The job extracts it into apps/sim/.next before running these suites. |
5 | 5 | # |
6 | | -# Usage: http-e2e.sh <scim|cli|stop-after|desktop-inbox|assistant-actions|organization-search|browser-extension|browser-extension-native|browser-extension-navigation|browser-extension-composer|browser-extension-access|project-files|mobile|seo|platform-live-zone|platform-live-flag-off> (run from apps/sim) |
| 6 | +# Usage: http-e2e.sh <scim|cli|stop-after|desktop-inbox|assistant-actions|organization-search|org-redesign|browser-extension|browser-extension-native|browser-extension-navigation|browser-extension-composer|browser-extension-access|project-files|mobile|seo|platform-live-zone|platform-live-flag-off> (run from apps/sim) |
7 | 7 | # |
8 | 8 | # The job provides DATABASE_URL, BETTER_AUTH_SECRET and ENCRYPTION_KEY; each group sets the rest of |
9 | 9 | # its app's environment here. Reports and server logs land in $RUNNER_TEMP/e2e. |
|
20 | 20 | # telemetry flush runs detached and still writes .next/dev). |
21 | 21 | set -euo pipefail |
22 | 22 |
|
23 | | -group=${1:?usage: http-e2e.sh <scim|cli|stop-after|desktop-inbox|assistant-actions|organization-search|browser-extension|browser-extension-native|browser-extension-navigation|browser-extension-composer|browser-extension-access|project-files|mobile|seo|platform-live-zone|platform-live-flag-off>} |
| 23 | +group=${1:?usage: http-e2e.sh <scim|cli|stop-after|desktop-inbox|assistant-actions|organization-search|org-redesign|browser-extension|browser-extension-native|browser-extension-navigation|browser-extension-composer|browser-extension-access|project-files|mobile|seo|platform-live-zone|platform-live-flag-off>} |
24 | 24 | report_dir="$RUNNER_TEMP/e2e" |
25 | 25 | ready_timeout_seconds=600 |
26 | 26 | mkdir -p "$report_dir" |
@@ -349,6 +349,59 @@ case "$group" in |
349 | 349 | esac |
350 | 350 | ;; |
351 | 351 |
|
| 352 | + # One hosted Enterprise organization, a scripted worker in place of the |
| 353 | + # model, and the app twice: with People off, then on. Hosted is decided by the |
| 354 | + # app's hostname, which the job maps to loopback. Both phases report, whichever fails. |
| 355 | + org-redesign) |
| 356 | + app_server=start |
| 357 | + export REDIS_URL=redis://127.0.0.1:6379 |
| 358 | + export E2E_APP_PUBLIC_URL=http://org-redesign.sim.ai:3029 |
| 359 | + export NEXT_PUBLIC_APP_URL="$E2E_APP_PUBLIC_URL" |
| 360 | + export INTERNAL_API_BASE_URL=http://127.0.0.1:3029 TRUSTED_ORIGINS=http://127.0.0.1:3029 |
| 361 | + export NEXT_PUBLIC_SOCKET_URL=http://127.0.0.1:3030 SOCKET_SERVER_URL=http://127.0.0.1:3030 |
| 362 | + export BILLING_ENABLED=true NEXT_PUBLIC_BILLING_ENABLED=true |
| 363 | + export ENTERPRISE_ENABLED=true NEXT_PUBLIC_ENTERPRISE_ENABLED=true |
| 364 | + export ORGANIZATIONS_ENABLED=true NEXT_PUBLIC_ORGANIZATIONS_ENABLED=true |
| 365 | + export SSO_ENABLED=true NEXT_PUBLIC_SSO_ENABLED=true |
| 366 | + export KNOWLEDGE_MEMBER_ACCESS=true CREDENTIAL_GROUPS=true ACCESS_CONTROL_ENABLED=true |
| 367 | + export NEXT_PUBLIC_ACCESS_CONTROL_ENABLED=true SIM_LINKS=true |
| 368 | + export COPILOT_TOOL_PERMISSIONS_ENABLED=true |
| 369 | + export INTERNAL_API_SECRET=org-redesign-ci-local-secret-at-least-32-characters |
| 370 | + export COPILOT_API_KEY=org-redesign-ci-local-copilot-key MOTHERSHIP_SIM_TRANSPORT=direct |
| 371 | + export SIM_AGENT_API_URL=http://127.0.0.1:3031 |
| 372 | + export GOOGLE_CLIENT_ID=org-redesign-google-client GOOGLE_CLIENT_SECRET=org-redesign-google-secret |
| 373 | + export JIRA_CLIENT_ID=org-redesign-jira-client JIRA_CLIENT_SECRET=org-redesign-jira-secret |
| 374 | + export CONFLUENCE_CLIENT_ID=org-redesign-confluence-client CONFLUENCE_CLIENT_SECRET=org-redesign-confluence-secret |
| 375 | + export STRIPE_SECRET_KEY=sk_test_org_redesign STRIPE_WEBHOOK_SECRET=whsec_org_redesign |
| 376 | + export DB_TX_TRIPWIRE=throw |
| 377 | + export BROWSER_EXTENSION_IDS=abcdefghijklmnopabcdefghijklmnop |
| 378 | + bun --no-env-file scripts/org-redesign-seed.ts |
| 379 | + start_browser_install org-redesign --only-shell chromium |
| 380 | + bun --no-env-file scripts/org-redesign-e2e/scripted-agent.ts 3031 \ |
| 381 | + > "$report_dir/org-redesign-agent.log" 2>&1 & |
| 382 | + agent_pid=$! |
| 383 | + wait_ready "$agent_pid" http://127.0.0.1:3031/health 'scripted agent' |
| 384 | + start_app org-redesign 3029 'organization redesign' record-http-status |
| 385 | + start_realtime org-redesign 3030 |
| 386 | + wait_for_browsers |
| 387 | + run_status=0 |
| 388 | + ORG_REDESIGN_E2E_ORIGIN="$E2E_APP_PUBLIC_URL" \ |
| 389 | + ORG_REDESIGN_E2E_DATABASE_URL="$DATABASE_URL" \ |
| 390 | + ORG_REDESIGN_E2E_AUTH_SECRET="$BETTER_AUTH_SECRET" \ |
| 391 | + ORG_REDESIGN_E2E_REPORT_PATH="$report_dir/org-redesign-ui-report.json" \ |
| 392 | + bun --no-env-file scripts/test-org-redesign-e2e.ts || run_status=$? |
| 393 | + stop_app |
| 394 | + export PEOPLE=true |
| 395 | + start_app org-redesign-people 3029 'organization redesign, People on' |
| 396 | + ORG_REDESIGN_E2E_PHASE=people \ |
| 397 | + ORG_REDESIGN_E2E_ORIGIN="$E2E_APP_PUBLIC_URL" \ |
| 398 | + ORG_REDESIGN_E2E_DATABASE_URL="$DATABASE_URL" \ |
| 399 | + ORG_REDESIGN_E2E_AUTH_SECRET="$BETTER_AUTH_SECRET" \ |
| 400 | + ORG_REDESIGN_E2E_REPORT_PATH="$report_dir/org-redesign-people-ui-report.json" \ |
| 401 | + bun --no-env-file scripts/test-org-redesign-e2e.ts || run_status=$? |
| 402 | + exit "$run_status" |
| 403 | + ;; |
| 404 | + |
352 | 405 | browser-extension|browser-extension-native|browser-extension-navigation|browser-extension-composer|browser-extension-access) |
353 | 406 | extension_group=all |
354 | 407 | case "$group" in |
|
0 commit comments