From 2d014777ae7c464bd00861662c4926ecf4f4508c Mon Sep 17 00:00:00 2001 From: tiniscule <114822071+tiniscule@users.noreply.github.com> Date: Sat, 2 Dec 2023 16:04:28 -0700 Subject: [PATCH] consolidate to PLAN_ID for tests --- .github/workflows/tests.yml | 4 ++-- supabase/tests/integration/stripe-full-only-webhooks.spec.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e6e34a7..285eba1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -91,7 +91,7 @@ jobs: SUPABASE_URL: http://127.0.0.1:54321 SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }} STRIPE_API_KEY: ${{ secrets.STRIPE_API_KEY }} - STRIPE_DEFAULT_PRICE_ID: ${{ secrets.STRIPE_DEFAULT_PRICE_ID }} + STRIPE_DEFAULT_PLAN_ID: ${{ secrets.STRIPE_DEFAULT_PLAN_ID }} STRIPE_DEFAULT_TRIAL_DAYS: 7 - name: Run tests with webhooks run: | @@ -101,5 +101,5 @@ jobs: SUPABASE_URL: http://127.0.0.1:54321 SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }} STRIPE_API_KEY: ${{ secrets.STRIPE_API_KEY }} - STRIPE_DEFAULT_PRICE_ID: ${{ secrets.STRIPE_DEFAULT_PRICE_ID }} + STRIPE_DEFAULT_PLAN_ID: ${{ secrets.STRIPE_DEFAULT_PLAN_ID }} STRIPE_DEFAULT_TRIAL_DAYS: 7 \ No newline at end of file diff --git a/supabase/tests/integration/stripe-full-only-webhooks.spec.ts b/supabase/tests/integration/stripe-full-only-webhooks.spec.ts index 943afe1..71acb0a 100644 --- a/supabase/tests/integration/stripe-full-only-webhooks.spec.ts +++ b/supabase/tests/integration/stripe-full-only-webhooks.spec.ts @@ -15,7 +15,7 @@ const timestamp = Date.now(); const uniqueIdentifier = `stripe-only-webhooks-${timestamp}` const stripeClient = new Stripe(process.env.STRIPE_API_KEY); -const stripeDefaultPlanId = process.env.STRIPE_DEFAULT_PRICE_ID; +const stripeDefaultPlanId = process.env.STRIPE_DEFAULT_PLAN_ID; test('Should be able to perform full user journey using only webhook updates from Stripe', async ({page}) => { /**