From a8f999f45f8ca0934a4b3deb1b249764e44a09ff Mon Sep 17 00:00:00 2001 From: Paulo Castellano Date: Thu, 21 May 2026 09:57:46 -0300 Subject: [PATCH] chore(billing): surface trial copy and rename signup test Show the checkout-based trial duration again on the subscribe page and rename the signup billing test file so it matches the current no-trial-at-signup behavior. Co-authored-by: Cursor --- lang/en/billing.php | 2 ++ lang/es/billing.php | 2 ++ lang/pt-BR/billing.php | 2 ++ resources/js/pages/billing/Subscribe.vue | 8 ++++++-- ...ialOnSignupTest.php => SignupRequiresCheckoutTest.php} | 0 5 files changed, 12 insertions(+), 2 deletions(-) rename tests/Feature/Auth/{TrialOnSignupTest.php => SignupRequiresCheckoutTest.php} (100%) diff --git a/lang/en/billing.php b/lang/en/billing.php index da52b3d2..eac2f116 100644 --- a/lang/en/billing.php +++ b/lang/en/billing.php @@ -27,6 +27,7 @@ 'eyebrow' => 'Pricing', 'title' => 'Choose the right plan for you', 'description' => 'Pick the plan that fits you. Billed monthly or annually.', + 'trial_info' => ':days-day free trial, then billed automatically', 'monthly' => 'Monthly', 'yearly' => 'Yearly', 'per_month' => 'monthly', @@ -37,6 +38,7 @@ 'everything_in' => 'Everything in :plan, plus:', 'save_months' => '2 months free', 'popular' => 'Most popular', + 'start_trial' => 'Start :days-day free trial', 'subscribe_cta' => 'Subscribe', 'prices' => [ 'starter' => ['monthly' => '$19', 'yearly_per_month' => '$16', 'yearly' => '$190'], diff --git a/lang/es/billing.php b/lang/es/billing.php index 99714107..f077718d 100644 --- a/lang/es/billing.php +++ b/lang/es/billing.php @@ -27,6 +27,7 @@ 'eyebrow' => 'Precios', 'title' => 'Elige el plan ideal para ti', 'description' => 'Elige el plan que te queda. Facturación mensual o anual.', + 'trial_info' => 'Prueba gratuita de :days días, luego se cobra automáticamente', 'monthly' => 'Mensual', 'yearly' => 'Anual', 'per_month' => 'mensual', @@ -37,6 +38,7 @@ 'everything_in' => 'Todo lo de :plan, más:', 'save_months' => '2 meses gratis', 'popular' => 'Más popular', + 'start_trial' => 'Comenzar prueba de :days días', 'subscribe_cta' => 'Suscribirse', 'prices' => [ 'starter' => ['monthly' => '$19', 'yearly_per_month' => '$16', 'yearly' => '$190'], diff --git a/lang/pt-BR/billing.php b/lang/pt-BR/billing.php index f392cc44..6a74b23d 100644 --- a/lang/pt-BR/billing.php +++ b/lang/pt-BR/billing.php @@ -27,6 +27,7 @@ 'eyebrow' => 'Preços', 'title' => 'Escolha o plano ideal pra você', 'description' => 'Escolha o plano que combina com você. Cobrança mensal ou anual.', + 'trial_info' => ':days dias grátis, depois cobrança automática', 'monthly' => 'Mensal', 'yearly' => 'Anual', 'per_month' => 'mensal', @@ -37,6 +38,7 @@ 'everything_in' => 'Tudo do :plan, mais:', 'save_months' => '2 meses grátis', 'popular' => 'Mais popular', + 'start_trial' => 'Iniciar teste de :days dias', 'subscribe_cta' => 'Assinar', 'prices' => [ 'starter' => ['monthly' => 'R$ 95', 'yearly_per_month' => 'R$ 79', 'yearly' => 'R$ 950'], diff --git a/resources/js/pages/billing/Subscribe.vue b/resources/js/pages/billing/Subscribe.vue index 12b1d366..2b1c4cc6 100644 --- a/resources/js/pages/billing/Subscribe.vue +++ b/resources/js/pages/billing/Subscribe.vue @@ -27,8 +27,9 @@ interface Highlight { tooltip?: string; } -defineProps<{ +const { plans, trialDays } = defineProps<{ plans: Plan[]; + trialDays: number; }>(); const isYearly = ref(true); @@ -121,6 +122,9 @@ const planTones: Record = {

{{ $t('billing.subscribe.description') }}

+

+ {{ trans('billing.subscribe.trial_info', { days: String(trialDays) }) }} +

@@ -227,7 +231,7 @@ const planTones: Record = { ]" @click="selectPlan(plan)" > - {{ $t('billing.subscribe.subscribe_cta') }} + {{ trans('billing.subscribe.start_trial', { days: String(trialDays) }) }} diff --git a/tests/Feature/Auth/TrialOnSignupTest.php b/tests/Feature/Auth/SignupRequiresCheckoutTest.php similarity index 100% rename from tests/Feature/Auth/TrialOnSignupTest.php rename to tests/Feature/Auth/SignupRequiresCheckoutTest.php