refactor(web): use ImmichApi to create urls (#2435)

This commit is contained in:
Michel Heusschen
2023-05-14 04:52:29 +02:00
committed by GitHub
parent 15fa8250cb
commit 4524aa0d06
13 changed files with 53 additions and 51 deletions
@@ -79,11 +79,6 @@ describe('AlbumCard component', () => {
const albumImgElement = sut.getByTestId('album-image');
const albumNameElement = sut.getByTestId('album-name');
const albumDetailsElement = sut.getByTestId('album-details');
// TODO: is this expected?
expect(albumImgElement).toHaveAttribute(
'src',
'/api/asset/thumbnail/thumbnailIdOne?format=WEBP'
);
expect(albumImgElement).toHaveAttribute('alt', album.id);
await waitFor(() => expect(albumImgElement).toHaveAttribute('src', thumbnailUrl));