Skip to content

Commit a5ab2a0

Browse files
committed
feat: update api tab doc link
1 parent 75f2f86 commit a5ab2a0

4 files changed

Lines changed: 5 additions & 9 deletions

File tree

cypress/component/HelpPanel.cy.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,9 @@ describe('HelpPanel', () => {
211211
cy.contains('OpenShift').should('be.visible');
212212
cy.contains('Settings').should('be.visible');
213213

214-
// Check external link
214+
// Check internal link
215215
cy.contains(getMessageText('apiDocumentationCatalogLinkText'))
216-
.should('have.attr', 'href', 'https://developers.redhat.com/api-catalog/')
217-
.should('have.attr', 'target', '_blank');
216+
.should('have.attr', 'href', 'https://console.redhat.com/docs/api');
218217
});
219218

220219
it('should create new panel tab', () => {

src/components/HelpPanel/HelpPanelTabs/APIPanel.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export const Default: Story = {
126126
const catalogLink = canvas.getByText(/API Documentation Catalog/i);
127127
expect(catalogLink.closest('a')).toHaveAttribute(
128128
'href',
129-
'https://developers.redhat.com/api-catalog/'
129+
'https://console.redhat.com/docs/api'
130130
);
131131

132132
// API names are now capitalized and "API" suffix is stripped

src/components/HelpPanel/HelpPanelTabs/APIPanel.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,11 +324,8 @@ const APIPanelContent: React.FC = () => {
324324
<Button
325325
variant="link"
326326
component="a"
327-
target="_blank"
328-
icon={<ExternalLinkAltIcon />}
329-
href="https://developers.redhat.com/api-catalog/"
327+
href="https://console.redhat.com/docs/api"
330328
isInline
331-
iconPosition="end"
332329
data-ouia-component-id="help-panel-api-docs-link"
333330
>
334331
{intl.formatMessage(messages.apiDocumentationCatalogLinkText)}

src/user-journeys/HelpPanelAPIPanel.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export const Step03_NavigateToAPIsTab: Story = {
101101
expect(catalogLink).toBeInTheDocument();
102102
expect(catalogLink.closest('a')).toHaveAttribute(
103103
'href',
104-
'https://developers.redhat.com/api-catalog/'
104+
'https://console.redhat.com/docs/api'
105105
);
106106

107107
console.log('UJ: ✅ APIs tab opened with description and catalog link');

0 commit comments

Comments
 (0)