Skip to content

Test that v1 creates no organizations and sends org-less sessions to v2 - #2499

Merged
RhysSullivan merged 1 commit into
v1-stop-org-creationfrom
v1-stop-org-creation-tests
Nov 5, 2026
Merged

RhysSullivan merged 1 commit into
v1-stop-org-creationfrom
v1-stop-org-creation-tests

Conversation

@RhysSullivan

@RhysSullivan RhysSullivan commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Tests for #2498.

  • e2e identities get their organization from WorkOS (emulator seed) instead of v1's create endpoint. The local create-organization helpers are replaced by addOrg in cloud/support/session.ts.
  • New cloud/org-creation-moved.test.ts:
    • create-organization answers with v2 and creates nothing (no WorkOS membership, organization request or session change, and the v1 org list is unchanged). Covered for an org-less account and for a member.
    • An invited account with no organization is sent to /join, accepts there and lands in the org.
  • session-gate: /, /tools and /create-org send an org-less session to v2's sign-up page. /create-org does the same for a member, and the member's pages are still served.
  • auth-routing-flow: a member signs in through the UI and lands on the dashboard. An org-less UI sign-in is sent to v2.
  • login-csrf, org-switcher (now also checks the v2 link), org-multitab-cookie, org-delete, org-slug-foreign, org-last-visited, connection-owner-isolation, oauth-callback-org-scope: these now use seeded orgs.
  • Removed org-limit, onboarding-mcp-url and the "creating an org provisions a billing customer" scenario because those features are gone.

Verification

  • bun run typecheck, bun run lint, bun run format:check: pass
  • apps/cloud unit tests: 70 files, 945 tests pass
  • Ran these cloud e2e files locally against a dev stack and they pass: org-creation-moved, session-gate, auth-routing-flow, login-csrf, org-switcher, org-multitab-cookie, org-delete, org-slug-foreign, org-last-visited, connection-owner-isolation, oauth-callback-org-scope, billing-customer-provisioning, admin-users, mcp-no-organization-moved, v2-import-link, connect-link-multi-org

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
executor-marketing 993bf36 Commit Preview URL

Branch Preview URL
Nov 05 2026, 04:44 AM

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Cloudflare preview

Torn down — the PR is closed.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
executor-cloud 993bf36 Nov 05 2026, 04:45 AM

@pkg-pr-new

pkg-pr-new Bot commented Nov 5, 2026

Copy link
Copy Markdown

Open in StackBlitz

@executor-js/cli

npm i https://pkg.pr.new/@executor-js/cli@2499

@executor-js/config

npm i https://pkg.pr.new/@executor-js/config@2499

@executor-js/execution

npm i https://pkg.pr.new/@executor-js/execution@2499

@executor-js/sdk

npm i https://pkg.pr.new/@executor-js/sdk@2499

@executor-js/codemode-core

npm i https://pkg.pr.new/@executor-js/codemode-core@2499

@executor-js/runtime-quickjs

npm i https://pkg.pr.new/@executor-js/runtime-quickjs@2499

@executor-js/plugin-file-secrets

npm i https://pkg.pr.new/@executor-js/plugin-file-secrets@2499

@executor-js/plugin-graphql

npm i https://pkg.pr.new/@executor-js/plugin-graphql@2499

@executor-js/plugin-keychain

npm i https://pkg.pr.new/@executor-js/plugin-keychain@2499

@executor-js/plugin-mcp

npm i https://pkg.pr.new/@executor-js/plugin-mcp@2499

@executor-js/plugin-onepassword

npm i https://pkg.pr.new/@executor-js/plugin-onepassword@2499

@executor-js/plugin-openapi

npm i https://pkg.pr.new/@executor-js/plugin-openapi@2499

executor

npm i https://pkg.pr.new/executor@2499

commit: 993bf36

@RhysSullivan
RhysSullivan marked this pull request as ready for review November 5, 2026 04:51
@RhysSullivan
RhysSullivan merged commit 141bc4a into main Nov 5, 2026
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant