diff --git a/frontend/src/component/admin/billing/BillingDashboard/BillingPlan/BillingPlan.tsx b/frontend/src/component/admin/billing/BillingDashboard/BillingPlan/BillingPlan.tsx index d5e67e046c..d42edabd77 100644 --- a/frontend/src/component/admin/billing/BillingDashboard/BillingPlan/BillingPlan.tsx +++ b/frontend/src/component/admin/billing/BillingDashboard/BillingPlan/BillingPlan.tsx @@ -82,6 +82,7 @@ export const BillingPlan: FC = ({ instanceStatus }) => { [InstancePlan.PRO]: 80, [InstancePlan.COMPANY]: 0, [InstancePlan.TEAM]: 0, + [InstancePlan.ENTERPRISE]: 0, [InstancePlan.UNKNOWN]: 0, user: 15, }; diff --git a/frontend/src/component/common/InstanceStatus/InstanceStatus.tsx b/frontend/src/component/common/InstanceStatus/InstanceStatus.tsx index 25282e2077..62f1213dc3 100644 --- a/frontend/src/component/common/InstanceStatus/InstanceStatus.tsx +++ b/frontend/src/component/common/InstanceStatus/InstanceStatus.tsx @@ -104,7 +104,7 @@ export const InstanceStatus: FC = ({ children }) => { return ( <> ( <> { expect(await screen.findByTestId(INSTANCE_STATUS_BAR_ID)).toMatchSnapshot(); }); +test('InstanceStatusBar should warn when the trial has expired for enterprise', async () => { + render( + + ); + + expect(screen.getByTestId(INSTANCE_STATUS_BAR_ID)).toBeInTheDocument(); + expect(await screen.findByTestId(INSTANCE_STATUS_BAR_ID)).toMatchSnapshot(); +}); + test('InstanceStatusBar should warn when the trial has churned', async () => { render( `; +exports[`InstanceStatusBar should warn when the trial has expired for enterprise 1`] = ` + +`; + exports[`InstanceStatusBar should warn when the trial is about to expire 1`] = `