diff --git a/src/locales/en/main.json b/src/locales/en/main.json
index ce76e807b93..ef48c4ebf5d 100644
--- a/src/locales/en/main.json
+++ b/src/locales/en/main.json
@@ -3683,6 +3683,11 @@
"body": "Your plan will renew on {date}. You can cancel again anytime.",
"title": "Resume your {plan} plan?"
},
+ "salesManaged": {
+ "line": "Billed by contract.",
+ "renews": "Billed by contract. Renews {date}.",
+ "title": "Enterprise"
+ },
"scheduledChange": "Changes to {plan} on {date}.",
"stayConfirm": {
"body": "Your plan won't change to {plan} on {date}. You can schedule a change again anytime.",
@@ -3758,7 +3763,7 @@
"title": "Payment received"
},
"verifyPayment": {
- "action": "Verify your payment",
+ "action": "Complete verification",
"body": "Your bank requires additional verification to complete this payment.",
"title": "Verify your payment"
}
diff --git a/src/platform/billing/components/billingTab/BillingPlanCheckoutBanner.test.ts b/src/platform/billing/components/billingTab/BillingPlanCheckoutBanner.test.ts
index 2e9629af55b..ad7001c72df 100644
--- a/src/platform/billing/components/billingTab/BillingPlanCheckoutBanner.test.ts
+++ b/src/platform/billing/components/billingTab/BillingPlanCheckoutBanner.test.ts
@@ -24,7 +24,7 @@ function renderBanner(banner: PlanCheckoutBanner) {
}
describe('BillingPlanCheckoutBanner', () => {
- it('links the bank check when the operation serves an action url', () => {
+ it('links the bank check from a white Complete verification action with no Dismiss', () => {
renderBanner({
kind: 'verifyPayment',
opId: 'op-1',
@@ -35,24 +35,45 @@ describe('BillingPlanCheckoutBanner', () => {
expect(screen.getByRole('status')).toHaveTextContent(
'Your bank requires additional verification to complete this payment.'
)
+ const action = screen.getByRole('link', { name: 'Complete verification' })
+ expect(action).toHaveAttribute('href', 'https://pay.example/verify')
+ expect(action).toHaveAttribute('data-variant', 'inverted')
expect(
- screen.getByRole('link', { name: 'Verify your payment' })
- ).toHaveAttribute('href', 'https://pay.example/verify')
+ screen.queryByRole('button', { name: 'Dismiss' })
+ ).not.toBeInTheDocument()
})
- it('uses the 12px banner shell with md buttons', () => {
- renderBanner({
- kind: 'verifyPayment',
- opId: 'op-1',
- actionUrl: 'https://pay.example/verify'
- })
+ it.for<{
+ case: string
+ banner: PlanCheckoutBanner
+ role: 'link' | 'button'
+ name: string
+ }>([
+ {
+ case: 'the verify action',
+ banner: {
+ kind: 'verifyPayment',
+ opId: 'op-1',
+ actionUrl: 'https://pay.example/verify'
+ },
+ role: 'link',
+ name: 'Complete verification'
+ },
+ {
+ case: 'Dismiss',
+ banner: { kind: 'paymentReceived', opId: 'op-1' },
+ role: 'button',
+ name: 'Dismiss'
+ }
+ ])(
+ 'uses the 12px banner shell with an md $case',
+ ({ banner, role, name }) => {
+ renderBanner(banner)
- expect(screen.getByRole('status')).toHaveClass('rounded-xl', 'p-3')
- expect(screen.getByRole('button', { name: 'Dismiss' })).toHaveClass('h-8')
- expect(
- screen.getByRole('link', { name: 'Verify your payment' })
- ).toHaveClass('h-8')
- })
+ expect(screen.getByRole('status')).toHaveClass('rounded-xl', 'p-3')
+ expect(screen.getByRole(role, { name })).toHaveClass('h-8')
+ }
+ )
it('shows verify payment with no link when the operation omits action_url', () => {
renderBanner({ kind: 'verifyPayment', opId: 'op-1', actionUrl: null })
diff --git a/src/platform/billing/components/billingTab/BillingPlanCheckoutBanner.vue b/src/platform/billing/components/billingTab/BillingPlanCheckoutBanner.vue
index 25605f9aa21..777709d913a 100644
--- a/src/platform/billing/components/billingTab/BillingPlanCheckoutBanner.vue
+++ b/src/platform/billing/components/billingTab/BillingPlanCheckoutBanner.vue
@@ -23,7 +23,12 @@
{{ copy?.body }}
-