diff --git a/pkg/rancher-prime/l10n/en-us.yaml b/pkg/rancher-prime/l10n/en-us.yaml
index fc30c77631b..e9b2e899159 100644
--- a/pkg/rancher-prime/l10n/en-us.yaml
+++ b/pkg/rancher-prime/l10n/en-us.yaml
@@ -20,12 +20,15 @@ registration:
offline:
title: Offline Registration
- stepone: 'Step 1: To register Rancher Manager offline, you must download the registration request file below and visit the SUSE Customer Center (SCC) offline registration tool https://scc.suse.com/register-offline/rancher.'
- steptwo: 'Step 2: Once logged in to SCC, follow the instructions to get your registration certificate provided by SCC. Once retrieved, upload the file below to register your product.'
+ stepone: 'Step 1: To register Rancher Manager offline, you must download the registration request file below'
+ steptwo: 'Step 2: Visit the SUSE Customer Center (SCC) offline registration tool.'
+ stepthree: 'Step 3: Once logged in to SCC, follow the instructions to get your registration certificate provided by SCC. Once retrieved, upload the file below to register your product.'
button:
download:
label: Download registration request
progress: Downloading
+ visit:
+ label: Visit SCC
register:
label: Upload certificate and register
progress: Registering
diff --git a/pkg/rancher-prime/pages/Registration.test.ts b/pkg/rancher-prime/pages/Registration.test.ts
index accf5acc942..759a85f00d1 100644
--- a/pkg/rancher-prime/pages/Registration.test.ts
+++ b/pkg/rancher-prime/pages/Registration.test.ts
@@ -91,7 +91,7 @@ describe('page: Registration', () => {
it('should prevent to type the registration code', () => {
const registerOnlineInput = wrapper.find('[data-testid="registration-code-input"]');
- expect(registerOnlineInput.attributes().disabled).toStrictEqual('true');
+ expect(registerOnlineInput.isDisabled()).toStrictEqual(true);
});
it('should prevent to download registration request', () => {
@@ -173,7 +173,7 @@ describe('page: Registration', () => {
});
});
- describe('while de-registering a online case', () => {
+ describe('while registered', () => {
beforeEach(() => {
wrapper.vm.registrationStatus = 'registered';
});
@@ -187,31 +187,7 @@ describe('page: Registration', () => {
it('should prevent to type the registration code', () => {
const registerOnlineInput = wrapper.find('[data-testid="registration-code-input"]');
- expect(registerOnlineInput.attributes().disabled).toStrictEqual('true');
- });
-
- it('should prevent new offline request', () => {
- const registerOfflineButton = wrapper.find('[data-testid="registration-offline-cta"]');
-
- expect(registerOfflineButton.isDisabled()).toStrictEqual(true);
- });
- });
-
- describe('while de-registering a offline case', () => {
- beforeEach(() => {
- wrapper.vm.registrationStatus = 'registered';
- });
-
- it('should prevent new online request', () => {
- const registerOnlineButton = wrapper.find('[data-testid="registration-online-cta"]');
-
- expect(registerOnlineButton.isDisabled()).toStrictEqual(true);
- });
-
- it('should prevent to type the registration code', () => {
- const registerOnlineInput = wrapper.find('[data-testid="registration-code-input"]');
-
- expect(registerOnlineInput.attributes().disabled).toStrictEqual('true');
+ expect(registerOnlineInput.isDisabled()).toStrictEqual(true);
});
it('should prevent new offline request', () => {
diff --git a/pkg/rancher-prime/pages/Registration.vue b/pkg/rancher-prime/pages/Registration.vue
index 8489f20f4d8..46c7b997ec0 100644
--- a/pkg/rancher-prime/pages/Registration.vue
+++ b/pkg/rancher-prime/pages/Registration.vue
@@ -5,10 +5,11 @@ import { useI18n } from '@shell/composables/useI18n';
import Tab from '@shell/components/Tabbed/Tab';
import Tabbed from '@shell/components/Tabbed';
-import LabeledInput from '@components/Form/LabeledInput/LabeledInput.vue';
+import { RcButton } from '@components/RcButton';
+import { LabeledInput } from '@components/Form/LabeledInput';
import { BadgeState } from '@components/BadgeState';
import AsyncButton from '@shell/components/AsyncButton';
-import Banner from '@components/Banner/Banner.vue';
+import { Banner } from '@components/Banner';
import FileSelector from '@shell/components/form/FileSelector';
import { usePrimeRegistration } from './registration.composable';
import Loading from '@shell/components/Loading.vue';
@@ -43,6 +44,10 @@ const isRegistering = computed(() => registrationStatus.value === 'registering-o
*/
const isRegisteringOffline = computed(() => registrationStatus.value === 'registering-offline');
+const visitScc = () => {
+ window.open('https://scc.suse.com/register-offline/rancher', '_blank');
+};
+
onMounted(async() => {
initRegistration();
});
@@ -142,6 +147,21 @@ onMounted(async() => {
v-clean-html="t('registration.offline.steptwo', {}, true)"
class="mt-20"
/>
+