diff --git a/src/Components/CreateImageWizard/steps/Review/ReviewStepTextLists.tsx b/src/Components/CreateImageWizard/steps/Review/ReviewStepTextLists.tsx index c2fefec4..591d5150 100644 --- a/src/Components/CreateImageWizard/steps/Review/ReviewStepTextLists.tsx +++ b/src/Components/CreateImageWizard/steps/Review/ReviewStepTextLists.tsx @@ -466,8 +466,6 @@ export const ContentList = ({ const snapshottingText = useMemo(() => { switch (true) { - case noRepositoriesSelected: - return 'No repositories selected'; case isLoading: return ''; case useLatest: @@ -477,7 +475,7 @@ export const ContentList = ({ default: return ''; } - }, [noRepositoriesSelected, isLoading, useLatest, snapshotDate]); + }, [isLoading, useLatest, snapshotDate]); return ( <> diff --git a/src/test/Components/CreateImageWizard/steps/Snapshot/Snapshot.test.tsx b/src/test/Components/CreateImageWizard/steps/Snapshot/Snapshot.test.tsx index ae80eb7a..63aaa698 100644 --- a/src/test/Components/CreateImageWizard/steps/Snapshot/Snapshot.test.tsx +++ b/src/test/Components/CreateImageWizard/steps/Snapshot/Snapshot.test.tsx @@ -169,7 +169,7 @@ describe('repository snapshot tab - ', () => { const snapshotMethodElement = await getSnapshotMethodElement(); // Check date was recorded correctly - expect(snapshotMethodElement).toHaveTextContent('No repositories selected'); + expect(snapshotMethodElement).toHaveTextContent('State as of 2024-04-22'); // Check that the button is clickable (has 1 repo selected) await waitFor(() => { expect(snapshotMethodElement).toHaveAttribute('aria-disabled', 'true');