Commit 74b7bc04 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'ag-cloud-modal-link' into 'master'

Update link on alert to point to the correct place

See merge request gitlab-org/gitlab!61922
parents 0ae3f9f9 ceebe472
...@@ -89,7 +89,9 @@ export default { ...@@ -89,7 +89,9 @@ export default {
> >
<gl-sprintf :message="$options.i18n.howToActivateSubscription"> <gl-sprintf :message="$options.i18n.howToActivateSubscription">
<template #link="{ content }"> <template #link="{ content }">
<gl-link :href="$options.links.adminLicenseUrl" target="_blank">{{ content }}</gl-link> <gl-link :href="$options.links.subscriptionActivationHelpLink" target="_blank">{{
content
}}</gl-link>
</template> </template>
</gl-sprintf> </gl-sprintf>
</gl-alert> </gl-alert>
......
...@@ -45,8 +45,10 @@ describe('SubscriptionActivationErrors', () => { ...@@ -45,8 +45,10 @@ describe('SubscriptionActivationErrors', () => {
it('shows some help links', () => { it('shows some help links', () => {
const alert = findConnectivityErrorAlert(); const alert = findConnectivityErrorAlert();
expect(alert.findAll(GlLink).at(0).props('href')).toBe(subscriptionActivationHelpLink); expect(alert.findAllComponents(GlLink).at(0).props('href')).toBe(
expect(alert.findAll(GlLink).at(1).props('href')).toBe(troubleshootingHelpLink); subscriptionActivationHelpLink,
);
expect(alert.findAllComponents(GlLink).at(1).props('href')).toBe(troubleshootingHelpLink);
}); });
it('does not show other alerts', () => { it('does not show other alerts', () => {
...@@ -63,6 +65,12 @@ describe('SubscriptionActivationErrors', () => { ...@@ -63,6 +65,12 @@ describe('SubscriptionActivationErrors', () => {
expect(findGeneralErrorAlert().props('title')).toBe(generalActivationError); expect(findGeneralErrorAlert().props('title')).toBe(generalActivationError);
}); });
it('shows a help link', () => {
expect(findGeneralErrorAlert().findComponent(GlLink).props('href')).toBe(
subscriptionActivationHelpLink,
);
});
it('shows a a text to help the user', () => { it('shows a a text to help the user', () => {
expect(findGeneralErrorAlert().text()).toBe('Learn how to activate your subscription.'); expect(findGeneralErrorAlert().text()).toBe('Learn how to activate your subscription.');
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment