From c949493016296a007a018081b29a320f41724be4 Mon Sep 17 00:00:00 2001 From: Mitch-Budibase Date: Tue, 9 Jan 2024 14:55:43 +0000 Subject: [PATCH] QA Core - Manage License Test Change The pricing has changed. Previously we used `PREMIUM` and `BUSINESS`. We now use `PREMIUM_PLUS` and `ENTERPRISE_BASIC` The test changes reflect this --- .../account-api/tests/licensing/license.manage.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qa-core/src/account-api/tests/licensing/license.manage.spec.ts b/qa-core/src/account-api/tests/licensing/license.manage.spec.ts index bda0476c2b..9a8662ea3b 100644 --- a/qa-core/src/account-api/tests/licensing/license.manage.spec.ts +++ b/qa-core/src/account-api/tests/licensing/license.manage.spec.ts @@ -39,10 +39,10 @@ describe("license management", () => { let premiumPriceId = null let businessPriceId = "" for (const plan of planBody) { - if (plan.type === PlanType.PREMIUM) { + if (plan.type === PlanType.PREMIUM_PLUS) { premiumPriceId = plan.prices[0].priceId } - if (plan.type === PlanType.BUSINESS) { + if (plan.type === PlanType.ENTERPRISE_BASIC) { businessPriceId = plan.prices[0].priceId } } @@ -97,7 +97,7 @@ describe("license management", () => { await config.loginAsAccount(createAccountRequest) await config.api.stripe.linkStripeCustomer(account.accountId, customer.id) const [_, selfBodyPremium] = await config.api.accounts.self() - expect(selfBodyPremium.license.plan.type).toBe(PlanType.PREMIUM) + expect(selfBodyPremium.license.plan.type).toBe(PlanType.PREMIUM_PLUS) // Create portal session - Check URL const [portalRes, portalSessionBody] = @@ -109,7 +109,7 @@ describe("license management", () => { // License updated to Business const [selfRes, selfBodyBusiness] = await config.api.accounts.self() - expect(selfBodyBusiness.license.plan.type).toBe(PlanType.BUSINESS) + expect(selfBodyBusiness.license.plan.type).toBe(PlanType.ENTERPRISE_BASIC) }) }) })