Skip to content

Commit

Permalink
consolidate to PLAN_ID for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tiniscule committed Dec 2, 2023
1 parent 701f1a7 commit 2d01477
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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}) => {
/**
Expand Down

0 comments on commit 2d01477

Please sign in to comment.