diff --git a/packages/core/admin/ee/admin/src/hooks/tests/useLicenseLimitNotification.test.tsx b/packages/core/admin/ee/admin/src/hooks/tests/useLicenseLimitNotification.test.tsx
index a4bf041857..4fe637b016 100644
--- a/packages/core/admin/ee/admin/src/hooks/tests/useLicenseLimitNotification.test.tsx
+++ b/packages/core/admin/ee/admin/src/hooks/tests/useLicenseLimitNotification.test.tsx
@@ -109,8 +109,8 @@ describe('useLicenseLimitNotification', () => {
"Add seats to invite Users. If you already did it but it's not reflected in Strapi yet, make sure to restart your app.",
title: 'Over seat limit (6/5)',
link: {
- url: 'https://https://strapi.io/billing/manage-seats',
- label: 'MANAGE SEATS',
+ url: 'https://strapi.io/billing/manage-seats',
+ label: 'Manage seats',
},
blockTransition: true,
onClose: expect.any(Function),
@@ -135,8 +135,8 @@ describe('useLicenseLimitNotification', () => {
"Add seats to invite Users. If you already did it but it's not reflected in Strapi yet, make sure to restart your app.",
title: 'Over seat limit (5/5)',
link: {
- url: 'https://cloud.strapi.io/profile/billing',
- label: 'ADD SEATS',
+ url: 'https://strapi.io/billing/manage-seats',
+ label: 'Manage seats',
},
blockTransition: true,
onClose: expect.any(Function),
diff --git a/packages/core/admin/ee/admin/src/pages/SettingsPage/pages/ApplicationInfoPage/components/tests/AdminSeatInfo.test.tsx b/packages/core/admin/ee/admin/src/pages/SettingsPage/pages/ApplicationInfoPage/components/tests/AdminSeatInfo.test.tsx
index 89c0c34802..c0320288a0 100644
--- a/packages/core/admin/ee/admin/src/pages/SettingsPage/pages/ApplicationInfoPage/components/tests/AdminSeatInfo.test.tsx
+++ b/packages/core/admin/ee/admin/src/pages/SettingsPage/pages/ApplicationInfoPage/components/tests/AdminSeatInfo.test.tsx
@@ -74,23 +74,25 @@ describe('', () => {
);
});
- test('Render billing link (on strapi cloud)', async () => {
+ test('Render billing link (gold license)', () => {
// @ts-expect-error – mocked
useLicenseLimits.mockReturnValue({
...LICENSE_MOCK,
license: {
...LICENSE_MOCK.license,
- isHostedOnStrapiCloud: true,
+ type: 'gold',
},
});
- const { findByText, getByText } = render();
+ const { getByText } = render();
- await findByText('Add seats');
- // eslint-disable-next-line testing-library/no-node-access
- expect(getByText('Add seats').closest('a')).toHaveAttribute(
+ expect(getByText('Contact sales')).toBeInTheDocument();
+ expect(
+ // eslint-disable-next-line testing-library/no-node-access
+ getByText('Contact sales').closest('a')
+ ).toHaveAttribute(
'href',
- 'https://cloud.strapi.io/profile/billing'
+ 'https://strapi.io/billing/request-seats'
);
});
});