mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-25 17:37:57 +00:00
fix: application support link with mailto:
URI schema (#18416)
This commit is contained in:
parent
c1a3206538
commit
09e6671f2f
@ -203,7 +203,10 @@ const MarketPlaceAppDetails = () => {
|
|||||||
<Space className="p-t-lg" direction="vertical" size={8}>
|
<Space className="p-t-lg" direction="vertical" size={8}>
|
||||||
<Typography.Text>
|
<Typography.Text>
|
||||||
{appData?.supportEmail && (
|
{appData?.supportEmail && (
|
||||||
<Typography.Link href={appData?.supportEmail} target="_blank">
|
<Typography.Link
|
||||||
|
data-testid="app-support-email"
|
||||||
|
href={`mailto:${appData?.supportEmail}`}
|
||||||
|
target="_blank">
|
||||||
<Space>{t('label.get-app-support')}</Space>
|
<Space>{t('label.get-app-support')}</Space>
|
||||||
</Typography.Link>
|
</Typography.Link>
|
||||||
)}
|
)}
|
||||||
|
@ -179,4 +179,15 @@ describe('MarketPlaceAppDetails component', () => {
|
|||||||
|
|
||||||
expect(mockPush).toHaveBeenCalledWith('app install path');
|
expect(mockPush).toHaveBeenCalledWith('app install path');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("should render the correct support email url with 'mailto:' schema", async () => {
|
||||||
|
render(<MarketPlaceAppDetails />);
|
||||||
|
|
||||||
|
await waitForElementToBeRemoved(() => screen.getByText('Loader'));
|
||||||
|
|
||||||
|
expect(screen.getByTestId('app-support-email')).toHaveAttribute(
|
||||||
|
'href',
|
||||||
|
'mailto:support@email.com'
|
||||||
|
);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user