Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions frontend/__tests__/components/route-pages.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe(RouteLocation.displayName, () => {
const wrapper = shallow(<RouteLocation obj={route} />);
const externalLinkWrapper = wrapper.find(RouteLinkAndCopy).shallow();
expect(externalLinkWrapper.find(ExternalLinkWithCopy).exists()).toBe(true);
expect(externalLinkWrapper.find(ExternalLinkWithCopy).props().link).toContain('https:');
expect(externalLinkWrapper.find(ExternalLinkWithCopy).props().href).toContain('https:');
});

it('renders a http link when no TLS Settings', () => {
Expand Down Expand Up @@ -81,7 +81,7 @@ describe(RouteLocation.displayName, () => {
const wrapper = shallow(<RouteLocation obj={route} />);
const externalLinkWrapper = wrapper.find(RouteLinkAndCopy).shallow();
expect(externalLinkWrapper.find(ExternalLinkWithCopy).exists()).toBe(true);
expect(externalLinkWrapper.find(ExternalLinkWithCopy).props().link).toContain('http:');
expect(externalLinkWrapper.find(ExternalLinkWithCopy).props().href).toContain('http:');
});

it('renders oldest admitted ingress', () => {
Expand Down Expand Up @@ -130,7 +130,7 @@ describe(RouteLocation.displayName, () => {
const wrapper = shallow(<RouteLocation obj={route} />);
const externalLinkWrapper = wrapper.find(RouteLinkAndCopy).shallow();
expect(externalLinkWrapper.find(ExternalLinkWithCopy).exists()).toBe(true);
expect(externalLinkWrapper.find(ExternalLinkWithCopy).props().link).toContain(
expect(externalLinkWrapper.find(ExternalLinkWithCopy).props().href).toContain(
'http://www.example.com',
);
});
Expand Down Expand Up @@ -171,7 +171,7 @@ describe(RouteLocation.displayName, () => {
const wrapper = shallow(<RouteLocation obj={route} />);
const externalLinkWrapper = wrapper.find(RouteLinkAndCopy).shallow();
expect(externalLinkWrapper.find(ExternalLinkWithCopy).exists()).toBe(true);
expect(externalLinkWrapper.find(ExternalLinkWithCopy).props().link).toContain('\\mypath');
expect(externalLinkWrapper.find(ExternalLinkWithCopy).props().href).toContain('\\mypath');
});

it('renders Subdomain', () => {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Trans, useTranslation } from 'react-i18next';
import { useK8sWatchResource } from '@console/internal/components/utils/k8s-watch-hook';
import { ConsoleLinkModel } from '@console/internal/models';
import { K8sResourceKind, referenceForModel } from '@console/internal/module/k8s';
import { ExternalLink } from '@console/shared/src/components/links/ExternalLink';

const HelpTourText: React.FC = () => {
const { t } = useTranslation();
Expand Down Expand Up @@ -38,23 +39,13 @@ export const FinishTourText: React.FC = () => {
return (
<Trans t={t} ns="console-app">
Stay up-to-date with everything OpenShift on our{' '}
<a
href={openshiftBlogLink}
target="_blank"
rel="noopener noreferrer"
data-test="openshift-blog-link"
>
<ExternalLink href={openshiftBlogLink} data-test="openshift-blog-link">
blog
</a>{' '}
</ExternalLink>{' '}
or continue to learn more in our{' '}
<a
href={openshiftHelpBase}
target="_blank"
rel="noopener noreferrer"
data-test="openshift-docs-link"
>
<ExternalLink href={openshiftHelpBase} data-test="openshift-help-link">
documentation
</a>
</ExternalLink>
.
</Trans>
);
Expand Down
Loading