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(() => {
|
const snapshottingText = useMemo(() => {
|
||||||
switch (true) {
|
switch (true) {
|
||||||
case noRepositoriesSelected:
|
|
||||||
return 'No repositories selected';
|
|
||||||
case isLoading:
|
case isLoading:
|
||||||
return '';
|
return '';
|
||||||
case useLatest:
|
case useLatest:
|
||||||
|
|
@ -477,7 +475,7 @@ export const ContentList = ({
|
||||||
default:
|
default:
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
}, [noRepositoriesSelected, isLoading, useLatest, snapshotDate]);
|
}, [isLoading, useLatest, snapshotDate]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|
|
||||||
|
|
@ -169,7 +169,7 @@ describe('repository snapshot tab - ', () => {
|
||||||
|
|
||||||
const snapshotMethodElement = await getSnapshotMethodElement();
|
const snapshotMethodElement = await getSnapshotMethodElement();
|
||||||
// Check date was recorded correctly
|
// 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)
|
// Check that the button is clickable (has 1 repo selected)
|
||||||
await waitFor(() => {
|
await waitFor(() => {
|
||||||
expect(snapshotMethodElement).toHaveAttribute('aria-disabled', 'true');
|
expect(snapshotMethodElement).toHaveAttribute('aria-disabled', 'true');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue