Skip to content

Commit

Permalink
made subscription button empty
Browse files Browse the repository at this point in the history
  • Loading branch information
gmmorris committed Apr 1, 2020
1 parent 4cdfcb3 commit f53f8a2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@ describe('connector_add_flyout', () => {
const callout = wrapper.find('UpgradeYourLicenseCallOut');
expect(callout).toHaveLength(1);

const subscriptionLinks = callout.find('EuiButton');
expect(subscriptionLinks).toHaveLength(2);

const [linkToManageLicense, linkToSubscribePage] = subscriptionLinks.getElements();

expect(linkToManageLicense.props.href).toMatchInlineSnapshot(
const manageLink = callout.find('EuiButton');
expect(manageLink).toHaveLength(1);
expect(manageLink.getElements()[0].props.href).toMatchInlineSnapshot(
`"/app/kibana#/management/elasticsearch/license_management/"`
);
expect(linkToSubscribePage.props.href).toMatchInlineSnapshot(

const subscriptionLink = callout.find('EuiButtonEmpty');
expect(subscriptionLink).toHaveLength(1);
expect(subscriptionLink.getElements()[0].props.href).toMatchInlineSnapshot(
`"https://www.elastic.co/subscriptions"`
);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ const UpgradeYourLicenseCallOut = ({ http }: { http: HttpSetup }) => (
</EuiButton>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiButton
<EuiButtonEmpty
href={VIEW_LICENSE_OPTIONS_LINK}
iconType="popout"
iconSide="right"
Expand All @@ -312,7 +312,7 @@ const UpgradeYourLicenseCallOut = ({ http }: { http: HttpSetup }) => (
id="xpack.triggersActionsUI.sections.actionConnectorAdd.upgradeYourPlanBannerLinkTitle"
defaultMessage="Subscription plans"
/>
</EuiButton>
</EuiButtonEmpty>
</EuiFlexItem>
</EuiFlexGroup>
</EuiCallOut>
Expand Down

0 comments on commit f53f8a2

Please sign in to comment.