Skip to content

Test the v2 import sidebar link - #2267

Merged
RhysSullivan merged 2 commits into
v1-sidebar-v2-importfrom
v1-sidebar-v2-import-tests
Oct 12, 2026
Merged

RhysSullivan merged 2 commits into
v1-sidebar-v2-importfrom
v1-sidebar-v2-import-tests

Conversation

@RhysSullivan

@RhysSullivan RhysSullivan commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Tests for the v2 import sidebar link (#2266).

  • apps/cloud/src/auth/v2-import.test.ts: the eligibility decision. It covers eligible, unverified email, multiple members, someone else as the only member, paid plans, unavailable reads and the order of reads. It also covers the paid-plan predicate and the import URL.
  • e2e/cloud/v2-import-link.test.ts: the real endpoint and the sidebar for a free sole member, the admin and member of a shared org, and a paid sole member. Unverified email has no e2e because the WorkOS emulator verifies every user's email.
  • The billing read itself, through the real AutumnService against a stubbed fetch: only customers.get is called, a 404 customer_not_found is free, free plans and an expired paid plan are free, a paid plan is not, and network errors, non-200 answers, a 404 without that code and malformed bodies all hide the link.
  • The Autumn emulator (@executor-js/emulate 0.14.3-mfa.0) has no customers.get, so a bun patch adds the route as upstream emulate has it (f05d023, unreleased). Drop the patch when the emulator is bumped past it.

@RhysSullivan
RhysSullivan added this pull request to stack #2268 October 11, 2026 21:55
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 11, 2026 •

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 9190d4d Commit Preview URL

Branch Preview URL
Oct 11 2026, 10:55 PM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 11, 2026 •

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 9190d4d Oct 11 2026, 10:56 PM

@github-actions

github-actions Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Cloudflare preview

Torn down — the PR is closed.

@pkg-pr-new

pkg-pr-new Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@executor-js/cli

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

@executor-js/config

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

@executor-js/execution

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

@executor-js/sdk

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

@executor-js/codemode-core

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

@executor-js/runtime-quickjs

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

@executor-js/plugin-file-secrets

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

@executor-js/plugin-graphql

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

@executor-js/plugin-keychain

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

@executor-js/plugin-mcp

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

@executor-js/plugin-onepassword

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

@executor-js/plugin-openapi

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

executor

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

commit: 9190d4d

@RhysSullivan
RhysSullivan force-pushed the v1-sidebar-v2-import-tests branch from d215728 to 9fc9b8a Compare October 11, 2026 22:53
@RhysSullivan
RhysSullivan force-pushed the v1-sidebar-v2-import-tests branch from 9fc9b8a to 9190d4d Compare October 11, 2026 22:54
@RhysSullivan
RhysSullivan marked this pull request as ready for review October 12, 2026 02:40
@RhysSullivan
RhysSullivan merged commit 2da6542 into main Oct 12, 2026
43 of 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