diff --git a/apps/website/e2e/payment.spec.ts b/apps/website/e2e/payment.spec.ts index 528b7f839b6..e78f931fc65 100644 --- a/apps/website/e2e/payment.spec.ts +++ b/apps/website/e2e/payment.spec.ts @@ -8,6 +8,7 @@ const CLOUD_URL = externalLinks.cloud const PLATFORM_USAGE_URL = externalLinks.platformUsage const SUPPORT_URL = externalLinks.support const DOCS_SUBSCRIPTION_URL = externalLinks.docsSubscription +const STATUS_URL = externalLinks.cloudStatus async function expectNoIndex(page: Page) { await expect(page.locator('meta[name="robots"]')).toHaveAttribute( @@ -79,6 +80,17 @@ test.describe('Payment failed page @smoke', () => { await expect(cta).toBeVisible() await expect(cta).toHaveAttribute('href', DOCS_SUBSCRIPTION_URL) }) + + test('points at the status page so an outage can be ruled out', async ({ + page + }) => { + const statusLink = page.getByRole('link', { + name: 'status page', + exact: true + }) + await expect(statusLink).toBeVisible() + await expect(statusLink).toHaveAttribute('href', STATUS_URL) + }) }) test.describe('Payment pages zh-CN @smoke', () => { @@ -111,5 +123,8 @@ test.describe('Payment pages zh-CN @smoke', () => { await expect( page.getByRole('link', { name: '查看订阅文档' }) ).toHaveAttribute('href', DOCS_SUBSCRIPTION_URL) + await expect( + page.getByRole('link', { name: '状态页面', exact: true }) + ).toHaveAttribute('href', STATUS_URL) }) }) diff --git a/apps/website/src/components/payment/PaymentStatusSection.vue b/apps/website/src/components/payment/PaymentStatusSection.vue index 0d8aec3f1ea..bff1a0a0e47 100644 --- a/apps/website/src/components/payment/PaymentStatusSection.vue +++ b/apps/website/src/components/payment/PaymentStatusSection.vue @@ -75,13 +75,13 @@ const iconRingClass = {{ t(`payment.${status}.label`, locale) }}

{{ t(`payment.${status}.title`, locale) }}

{{ t(`payment.${status}.subtitle`, locale) }}

@@ -96,6 +96,20 @@ const iconRingClass = {{ t(`payment.${status}.secondaryCta`, locale) }} + +

+ {{ t('payment.failed.statusPrompt.prefix', locale) }} + + {{ t('payment.failed.statusPrompt.statusLink', locale) }} + + {{ t('payment.failed.statusPrompt.suffix', locale) }} +

diff --git a/apps/website/src/i18n/translations.ts b/apps/website/src/i18n/translations.ts index c93403e179f..bd0a3a53f4e 100644 --- a/apps/website/src/i18n/translations.ts +++ b/apps/website/src/i18n/translations.ts @@ -4615,6 +4615,18 @@ const translations = { en: 'READ SUBSCRIPTION DOCS', 'zh-CN': '查看订阅文档' }, + 'payment.failed.statusPrompt.prefix': { + en: 'Check our', + 'zh-CN': '请查看我们的' + }, + 'payment.failed.statusPrompt.statusLink': { + en: 'status page', + 'zh-CN': '状态页面' + }, + 'payment.failed.statusPrompt.suffix': { + en: 'for more information.', + 'zh-CN': '了解更多信息。' + }, // AffiliateHeroSection 'affiliate.hero.label': { en: 'AFFILIATE', 'zh-CN': '联盟' },