feat: make MkImgWithBlurhash
transitionable (#10500)
* feat: make `MkImgWithBlurhash` animatable * refactor: split out transition styles * fix: bug * test: waitFor image loads * style: remove unused await * fix * fix type error --------- Co-authored-by: tamaina <tamaina@hotmail.co.jp>
This commit is contained in:

committed by
GitHub

parent
e2d9c0efe2
commit
9d5911d4e4
@@ -28,9 +28,11 @@ export const Default = {
|
||||
async play({ canvasElement }) {
|
||||
const canvas = within(canvasElement);
|
||||
const links = canvas.getAllByRole('link');
|
||||
await expect(links).toHaveLength(2);
|
||||
await expect(links[0]).toHaveAttribute('href', `/gallery/${galleryPost().id}`);
|
||||
await expect(links[1]).toHaveAttribute('href', `/@${galleryPost().user.username}@${galleryPost().user.host}`);
|
||||
expect(links).toHaveLength(2);
|
||||
expect(links[0]).toHaveAttribute('href', `/gallery/${galleryPost().id}`);
|
||||
expect(links[1]).toHaveAttribute('href', `/@${galleryPost().user.username}@${galleryPost().user.host}`);
|
||||
const images = canvas.getAllByRole<HTMLImageElement>('img');
|
||||
await waitFor(() => expect(Promise.all(images.map((image) => image.decode()))).resolves.toBeDefined());
|
||||
},
|
||||
args: {
|
||||
post: galleryPost(),
|
||||
|
Reference in New Issue
Block a user