V2Wizrd: remove Duplicate mount points warning
This commit is contained in:
parent
442d88a4ce
commit
4ba9235b1b
2 changed files with 0 additions and 18 deletions
|
|
@ -94,7 +94,6 @@ const FileSystemConfiguration = () => {
|
|||
|
||||
const dispatch = useAppDispatch();
|
||||
|
||||
const isNextButtonPristine = useAppSelector(selectIsNextButtonTouched);
|
||||
const handleAddPartition = () => {
|
||||
const id = uuidv4();
|
||||
dispatch(
|
||||
|
|
@ -115,17 +114,6 @@ const FileSystemConfiguration = () => {
|
|||
{partitions?.find((partition) =>
|
||||
partition?.mountpoint?.includes('/usr')
|
||||
) && <UsrSubDirectoriesDisabled />}
|
||||
{!isNextButtonPristine &&
|
||||
getDuplicateMountPoints(partitions)?.length !== 0 &&
|
||||
getDuplicateMountPoints(partitions)?.length !== undefined && (
|
||||
<div>
|
||||
<Alert
|
||||
isInline
|
||||
variant="warning"
|
||||
title="Duplicate mount points: All mount points must be unique. Remove the duplicate or choose a new mount point."
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
<TextContent>
|
||||
<Text>
|
||||
Create partitions for your image by defining mount points and minimum
|
||||
|
|
|
|||
|
|
@ -815,11 +815,6 @@ describe('Step File system configuration', () => {
|
|||
// Clicking next causes errors to appear
|
||||
await clickNext();
|
||||
|
||||
const mountPointWarning = await screen.findByRole('heading', {
|
||||
name: /danger alert: duplicate mount points: all mount points must be unique\. remove the duplicate or choose a new mount point\./i,
|
||||
hidden: true,
|
||||
});
|
||||
|
||||
const mountPointAlerts = screen.getAllByRole('heading', {
|
||||
name: /danger alert: duplicate mount point\./i,
|
||||
});
|
||||
|
|
@ -838,7 +833,6 @@ describe('Step File system configuration', () => {
|
|||
});
|
||||
await user.click(varButton);
|
||||
|
||||
await waitFor(() => expect(mountPointWarning).not.toBeInTheDocument());
|
||||
await waitFor(() => expect(mountPointAlerts[0]).not.toBeInTheDocument());
|
||||
await waitFor(() => expect(mountPointAlerts[1]).not.toBeInTheDocument());
|
||||
expect(await getNextButton()).toBeEnabled();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue