Wizard: remove no repos selected message

This commit is contained in:
Dominik Vagner 2024-09-27 14:12:53 +02:00 committed by Klara Simickova
parent 13892718cd
commit 2ef545111f
2 changed files with 2 additions and 4 deletions

View file

@ -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 (
<>

View file

@ -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');