Skip to content

Commit 192c262

Browse files
fix(adoption-insights): Update label from techdocs to TechDocs in UI (#1244)
1 parent 518a20a commit 192c262

5 files changed

Lines changed: 14 additions & 9 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@red-hat-developer-hub/backstage-plugin-adoption-insights': patch
3+
---
4+
5+
Update label from techdocs to TechDocs in UI

workspaces/adoption-insights/packages/app/e2e-tests/insights.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ test('Rest of the panels have no data', async () => {
110110
const titles = [
111111
'Top templates',
112112
'Top catalog entities',
113-
'Top techdocs',
113+
'Top TechDocs',
114114
'Searches',
115115
];
116116
for (const title of titles) {
@@ -172,9 +172,9 @@ test.describe(() => {
172172
await expect(entries).toContainText('example-website');
173173
});
174174

175-
test('Visited techdoc shows up in top techdocs', async () => {
175+
test('Visited techdoc shows up in top TechDocs', async () => {
176176
const panel = page.locator('.v5-MuiPaper-root', {
177-
hasText: 'Top 3 techdocs',
177+
hasText: 'Top 3 TechDocs',
178178
});
179179
const entries = panel.locator('tbody').locator('tr');
180180
await expect(entries).toHaveCount(1);

workspaces/adoption-insights/plugins/adoption-insights/dev/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ createDevApp()
140140
<Techdocs />
141141
</AdoptionInsightsWrapper>
142142
),
143-
title: 'Top Techdocs',
143+
title: 'Top TechDocs',
144144
})
145145
.addPage({
146146
path: '/searches',

workspaces/adoption-insights/plugins/adoption-insights/src/components/Techdocs/Techdocs.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ const Techdocs = () => {
6262

6363
if (error) {
6464
return (
65-
<CardWrapper title="Top techdocs">
65+
<CardWrapper title="Top TechDocs">
6666
<ResponseErrorPanel error={error} />
6767
</CardWrapper>
6868
);
6969
}
7070

7171
if (!visibleTechdocs || visibleTechdocs?.length === 0) {
7272
return (
73-
<CardWrapper title="Top techdocs">
73+
<CardWrapper title="Top TechDocs">
7474
<Box
7575
display="flex"
7676
justifyContent="center"
@@ -84,7 +84,7 @@ const Techdocs = () => {
8484
}
8585

8686
return (
87-
<CardWrapper title={`Top ${rowsPerPage} techdocs`}>
87+
<CardWrapper title={`Top ${rowsPerPage} TechDocs`}>
8888
<Table aria-labelledby="Catalog entities" sx={{ width: '100%' }}>
8989
<TableHead>
9090
<TableRow>

workspaces/adoption-insights/plugins/adoption-insights/src/components/Techdocs/__tests__/Techdocs.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ describe('Techdocs', () => {
101101
});
102102

103103
it('should render the component with initial data', () => {
104-
expect(screen.getByText('Top 3 techdocs')).toBeInTheDocument();
104+
expect(screen.getByText('Top 3 TechDocs')).toBeInTheDocument();
105105
expect(screen.getAllByRole('row')).toHaveLength(5);
106106
});
107107

@@ -122,7 +122,7 @@ describe('Techdocs', () => {
122122
await user.click(select);
123123
await user.click(screen.getByText('Top 5'));
124124

125-
expect(screen.getByText('Top 5 techdocs')).toBeInTheDocument();
125+
expect(screen.getByText('Top 5 TechDocs')).toBeInTheDocument();
126126
expect(screen.getAllByRole('row')).toHaveLength(6);
127127
});
128128

0 commit comments

Comments
 (0)