Skip to content

Commit

Permalink
fix(quay): remove unuseful link (janus-idp#1692)
Browse files Browse the repository at this point in the history
Signed-off-by: Yi Cai <yicai@redhat.com>
  • Loading branch information
ciiay committed May 17, 2024
1 parent e2a41d8 commit ae27d91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('QuayRepository', () => {
expect(getByTestId('quay-repo-table')).not.toBeNull();
expect(getByTestId('quay-repo-table-empty')).not.toBeNull();
expect(queryByText(/Quay repository/i)).toBeInTheDocument();
expect(queryByText(/No data was added yet/i)).toBeInTheDocument();
expect(queryByText('There are no images available.')).toBeInTheDocument();
});

it('should show table if loaded and data is present', () => {
Expand All @@ -71,7 +71,9 @@ describe('QuayRepository', () => {
expect(queryByTestId('quay-repo-table')).not.toBeNull();
expect(queryByTestId('quay-repo-table-empty')).toBeNull();
expect(queryByText(/Quay repository/i)).toBeInTheDocument();
expect(queryByText(/No data was added yet/i)).not.toBeInTheDocument();
expect(
queryByText('There are no images available.'),
).not.toBeInTheDocument();
});

it('should show table if loaded and data is present but shows progress if security scan is not loaded', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ export function QuayRepository(_props: QuayRepositoryProps) {
columns={columns}
emptyContent={
<div data-testid="quay-repo-table-empty" className={classes.empty}>
No data was added yet,&nbsp;
<Link to="https://backstage.io/">learn how to add data</Link>.
There are no images available.
</div>
}
/>
Expand Down

0 comments on commit ae27d91

Please sign in to comment.