Skip to content

test(Billing): Post-deploy E2E does not include plans#7337

Merged
khvn26 merged 1 commit intomainfrom
fix/staging-frontend-plan-ids
Apr 24, 2026
Merged

test(Billing): Post-deploy E2E does not include plans#7337
khvn26 merged 1 commit intomainfrom
fix/staging-frontend-plan-ids

Conversation

@khvn26
Copy link
Copy Markdown
Member

@khvn26 khvn26 commented Apr 24, 2026

Thanks for submitting a PR! Please check the boxes below:

  • I have read the Contributing Guide.
  • I have added information to docs/ if required so people know about the feature.
  • I have filled in the "Changes" section below.
  • I have filled in the "How did you test this code" section below.

Changes

Follow-up to #7335. The post-API-deploy E2E run (triggered by .reusable-deploy-ecs.yml with environment: staging) failed on the new @saas billing test because frontend/env/project_staging.js was missing the plans field — PaymentButton is gated on chargebeePlanId being truthy, so the trial buttons never rendered.

The Vercel-deployed staging.flagsmith.com wasn't affected because the flagsmith-frontend-staging Vercel project bundles with ENV=dev, so it inherits the plan IDs from project_dev.js. The asymmetry was silent until the @saas test started exercising that path.

Copy the same plan IDs into project_staging.js so staging-ENV bundles render the trial buttons. project_prod.js already carries its own plans block (different startup.annual ID because the prod Chargebee tenant has a different catalogue) — no changes needed there.

How did you test this code?

  • Re-running the post-API-deploy E2E (or any ENV=staging bundle) will now render the trial buttons rather than hiding them.
  • Ran the @saas billing test locally against staging.flagsmith.com on main and against the PR preview for fix(Billing): Free trial buttons stop working after toggling yearly/monthly #7335 — both passed pre-merge because those builds use ENV=dev. This change brings the staging-ENV bundle to parity.

Vercel's flagsmith-frontend-staging project bundles with ENV=dev and
already ships the full plan catalogue, while the staging E2E bundle
(e.g. the post-API-deploy run in .reusable-deploy-ecs.yml) is built
with ENV=staging and was missing the plans field — trial buttons were
gated on chargebeePlanId so they silently didn't render.

Copy the plan IDs from project_dev.js into project_staging.js so both
staging bundles are configured identically. project_prod.js already
has its own plans block (prod Chargebee tenant uses different plan
IDs) and doesn't need changes.

beep boop
@khvn26 khvn26 requested a review from a team as a code owner April 24, 2026 14:45
@khvn26 khvn26 requested review from kyle-ssg and removed request for a team April 24, 2026 14:45
Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

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

⚠️ Code review skipped — your organization's overage spend limit has been reached.

Code review is billed via overage credits. To resume reviews, an organization admin can raise the monthly limit at claude.ai/admin-settings/claude-code.

Once credits are available, reopen this pull request to trigger a review.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
flagsmith-frontend-preview Ready Ready Preview, Comment Apr 24, 2026 2:46pm
flagsmith-frontend-staging Ready Ready Preview, Comment Apr 24, 2026 2:46pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs Ignored Ignored Apr 24, 2026 2:46pm

Request Review

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 24, 2026

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-api-test:pr-7337 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-api:pr-7337 Finished ✅ Results
ghcr.io/flagsmith/flagsmith:pr-7337 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-private-cloud:pr-7337 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-e2e:pr-7337 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-frontend:pr-7337 Finished ✅ Results

@khvn26 khvn26 merged commit 4e7ec1e into main Apr 24, 2026
25 checks passed
@khvn26 khvn26 deleted the fix/staging-frontend-plan-ids branch April 24, 2026 14:48
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 24, 2026

Playwright Test Results (oss - depot-ubuntu-latest-16)

passed  11 passed

Details

stats  11 tests across 8 suites
duration  24.6 seconds
commit  5b5d7b4
info  🔄 Run: #16324 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  11 passed

Details

stats  11 tests across 8 suites
duration  11.3 seconds
commit  5b5d7b4
info  🔄 Run: #16324 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)

passed  17 passed

Details

stats  17 tests across 14 suites
duration  58.1 seconds
commit  5b5d7b4
info  🔄 Run: #16324 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-16)

passed  2 passed

Details

stats  2 tests across 2 suites
duration  45.9 seconds
commit  5b5d7b4
info  🔄 Run: #16324 (attempt 1)

@github-actions
Copy link
Copy Markdown
Contributor

Visual Regression

16 screenshots compared. See report for details.
View full report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

front-end Issue related to the React Front End Dashboard testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants