Wizard: remove no repos selected message
This commit is contained in:
parent
13892718cd
commit
2ef545111f
2 changed files with 2 additions and 4 deletions
|
|
@ -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 (
|
||||
<>
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue