{
});
const homeButton = screen.getByRole('button', {
- name: 'navigate to manufacturer home',
+ name: 'navigate to manufacturers home',
});
await user.click(homeButton);
diff --git a/src/manufacturer/manufacturer.component.tsx b/src/manufacturer/manufacturer.component.tsx
index db085d05d..b4daffa85 100644
--- a/src/manufacturer/manufacturer.component.tsx
+++ b/src/manufacturer/manufacturer.component.tsx
@@ -324,7 +324,7 @@ function ManufacturerComponent() {
onChangeNode={onChangeNode}
onChangeNavigateHome={onChangeNode}
breadcrumbsInfo={undefined}
- navigateHomeAriaLabel="navigate to manufacturer home"
+ homeLocation="Manufacturers"
/>
diff --git a/src/manufacturer/manufacturerLandingPage.component.test.tsx b/src/manufacturer/manufacturerLandingPage.component.test.tsx
index a8a514201..e384500ca 100644
--- a/src/manufacturer/manufacturerLandingPage.component.test.tsx
+++ b/src/manufacturer/manufacturerLandingPage.component.test.tsx
@@ -33,7 +33,7 @@ describe('Manufacturer Landing page', () => {
await waitFor(() => {
expect(
screen.getByRole('button', {
- name: 'navigate to manufacturer home',
+ name: 'navigate to manufacturers home',
})
).toBeInTheDocument();
});
@@ -52,7 +52,7 @@ describe('Manufacturer Landing page', () => {
});
const homeButton = screen.getByRole('button', {
- name: 'navigate to manufacturer home',
+ name: 'navigate to manufacturers home',
});
await user.click(homeButton);
diff --git a/src/manufacturer/manufacturerLandingPage.component.tsx b/src/manufacturer/manufacturerLandingPage.component.tsx
index 486ed2b39..fbf282092 100644
--- a/src/manufacturer/manufacturerLandingPage.component.tsx
+++ b/src/manufacturer/manufacturerLandingPage.component.tsx
@@ -67,7 +67,7 @@ function ManufacturerLandingPage() {
onChangeNode={onChangeNode}
onChangeNavigateHome={() => onChangeNode(null)}
breadcrumbsInfo={manufacturerLandingBreadcrumbs}
- navigateHomeAriaLabel="navigate to manufacturer home"
+ homeLocation="Manufacturers"
/>
{manufacturerData && (
diff --git a/src/systems/__snapshots__/systemItemsTable.component.test.tsx.snap b/src/systems/__snapshots__/systemItemsTable.component.test.tsx.snap
index ca22cd8ab..58606d4b6 100644
--- a/src/systems/__snapshots__/systemItemsTable.component.test.tsx.snap
+++ b/src/systems/__snapshots__/systemItemsTable.component.test.tsx.snap
@@ -2637,7 +2637,7 @@ exports[`SystemItemsTable > SystemItemsTable (usageStatus) > renders correctly 1
aria-invalid="false"
autocomplete="new-password"
class="MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputSizeSmall MuiInputBase-inputAdornedStart MuiInputBase-inputAdornedEnd css-12yjm75-MuiInputBase-input-MuiOutlinedInput-input"
- id=":rj7:"
+ id=":rj8:"
placeholder="Search"
type="text"
value=""
@@ -2838,7 +2838,7 @@ exports[`SystemItemsTable > SystemItemsTable (usageStatus) > renders correctly 1
aria-label="Filter by Catalogue Item"
autocomplete="new-password"
class="MuiInputBase-input MuiInput-input MuiInputBase-inputAdornedEnd css-929hxt-MuiInputBase-input-MuiInput-input"
- id=":rjd:"
+ id=":rje:"
placeholder="Filter by Catalogue Item"
title="Filter by Catalogue Item"
type="text"
@@ -3039,7 +3039,7 @@ exports[`SystemItemsTable > SystemItemsTable (usageStatus) > renders correctly 1
aria-label="Filter by Serial Number"
autocomplete="new-password"
class="MuiInputBase-input MuiInput-input MuiInputBase-inputAdornedEnd css-929hxt-MuiInputBase-input-MuiInput-input"
- id=":rjj:"
+ id=":rjk:"
placeholder="Filter by Serial Number"
title="Filter by Serial Number"
type="text"
@@ -3544,7 +3544,7 @@ exports[`SystemItemsTable > SystemItemsTable (usageStatus) > renders correctly 1
class="MuiInputBase-root MuiInput-root MuiInputBase-colorPrimary css-1mmm5cp-MuiInputBase-root-MuiInput-root-MuiSelect-root"
>
{
breadcrumbsInfo={parentSystemBreadcrumbs}
onChangeNode={setParentSystemId}
onChangeNavigateHome={() => setParentSystemId(null)}
- navigateHomeAriaLabel={'navigate to systems home'}
+ homeLocation="Systems"
/>
diff --git a/src/systems/systemItemsDialog.component.tsx b/src/systems/systemItemsDialog.component.tsx
index c8fca0e13..c855656fe 100644
--- a/src/systems/systemItemsDialog.component.tsx
+++ b/src/systems/systemItemsDialog.component.tsx
@@ -229,7 +229,7 @@ const SystemItemsDialog = React.memo((props: SystemItemsDialogProps) => {
onChangeNavigateHome={() => {
changeParentSystemId(null);
}}
- navigateHomeAriaLabel={'navigate to systems home'}
+ homeLocation="Systems"
/>
diff --git a/src/systems/systems.component.test.tsx b/src/systems/systems.component.test.tsx
index 3b931ba35..9748d22de 100644
--- a/src/systems/systems.component.test.tsx
+++ b/src/systems/systems.component.test.tsx
@@ -146,7 +146,7 @@ describe('Systems', () => {
expect(screen.getByText('Root systems')).toBeInTheDocument();
});
- await user.click(screen.getByRole('button', { name: 'add system' }));
+ await user.click(screen.getByRole('button', { name: 'Add System' }));
expect(screen.getByRole('dialog')).toBeInTheDocument();
@@ -164,7 +164,7 @@ describe('Systems', () => {
expect(screen.getByText('Subsystems')).toBeInTheDocument();
});
- await user.click(screen.getByRole('button', { name: 'add subsystem' }));
+ await user.click(screen.getByRole('button', { name: 'Add Subsystem' }));
expect(screen.getByRole('dialog')).toBeInTheDocument();
diff --git a/src/systems/systems.component.tsx b/src/systems/systems.component.tsx
index b0249ab70..5650a33a6 100644
--- a/src/systems/systems.component.tsx
+++ b/src/systems/systems.component.tsx
@@ -23,6 +23,7 @@ import {
TableContainer,
TableRow,
Typography,
+ Tooltip,
} from '@mui/material';
import {
// To resolve react/jsx-pascal-case
@@ -84,14 +85,19 @@ const AddSystemButton = (props: { systemId: string | null }) => {
const [addSystemDialogOpen, setAddSystemDialogOpen] =
React.useState(false);
+ let ariaLabelText = props.systemId === null ? 'Add System' : 'Add Subsystem'
return (
<>
- setAddSystemDialogOpen(true)}
- >
-
-
+
+
+ setAddSystemDialogOpen(true)}
+ >
+
+
+
+
setAddSystemDialogOpen(false)}
@@ -341,7 +347,7 @@ function Systems() {
breadcrumbsInfo={systemsBreadcrumbs}
onChangeNode={navigateToSystem}
onChangeNavigateHome={() => navigateToSystem(null)}
- navigateHomeAriaLabel={'navigate to systems home'}
+ homeLocation="Systems"
/>
{systemsBreadcrumbs && (
should render correctly for path 1`] = `
-
+
+