Skip to content

ci: pass ECOMMERCE_CHECKOUT_URL through the OCI Playwright test runner - #301

Open
bnsoni wants to merge 1 commit into
mainfrom
ci/ecommerce-checkout-url-e2e
Open

ci: pass ECOMMERCE_CHECKOUT_URL through the OCI Playwright test runner#301
bnsoni wants to merge 1 commit into
mainfrom
ci/ecommerce-checkout-url-e2e

Conversation

@bnsoni

@bnsoni bnsoni commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Forward the new ECOMMERCE_CHECKOUT_URL Actions variable into the Playwright container env in reusable-oci-test-runner.yml (both the .env.oci write and the OCI container-instance env-vars.json), mirroring the existing EXTERNAL_STRIPE_PRICING_URL plumbing.
  • Document the variable in e2e/.env.example.

Why

Journey 55 (e2e/journeys/55-free-credits-checkout-onboarding.spec.ts) reads process.env.ECOMMERCE_CHECKOUT_URL via e2e/fixtures/test-data.ts, but the test runner never forwarded it, so CI runs always used the hardcoded fallback (http://ibl.ai/join) instead of the stg checkout redirect.

The repo Actions variable ECOMMERCE_CHECKOUT_URL is already set on this repo to
http://base.manager.stg1.iblai.org/api/service/stripe/checkout/redirect/credits-free-plan.

Note: this edits the vendored copy of the reusable — the sibling copies in iblai/lms and iblai/iblai-web-ops can be synced separately (the var is mentor-specific, so nothing breaks there meanwhile; unset vars are stripped from the container env and the spec skips itself when the value is empty).

🤖 Generated with Claude Code

Journey 55 (free-credits checkout onboarding) reads
process.env.ECOMMERCE_CHECKOUT_URL in e2e/fixtures/test-data.ts, but the
OCI test runner never forwarded it, so CI runs always fell back to the
hardcoded default. Forward the new ECOMMERCE_CHECKOUT_URL Actions
variable into .env.oci and the container-instance env, mirroring
EXTERNAL_STRIPE_PRICING_URL.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@bnsoni
bnsoni requested a review from mamigot as a code owner July 2, 2026 16:15
@mamigot

mamigot commented Jul 2, 2026

Copy link
Copy Markdown
Member

Claude finished @bnsoni's task —— View job


E2E Coverage Review

  • Gather context
  • Dismiss stale REQUEST_CHANGES reviews (none found)
  • Check changed files (.github/workflows/reusable-oci-test-runner.yml, e2e/.env.example)
  • Run mechanical coverage check (499 checkpoints, exit 0)
  • Apply decision logic — CASE E: no new routes, coverage intact → Approved

Result

No new page.tsx routes were added. The coverage check passed with 499 checkpoints (unchanged). PR approved.
· Branch: ci/ecommerce-checkout-url-e2e

@mamigot mamigot left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ E2E Coverage — No Issues

No new app routes were introduced. All existing coverage is intact.

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.

2 participants