test: await most-played cover wake effect

This commit is contained in:
cucadmuh
2026-07-20 17:46:27 +03:00
parent b4623a3eaa
commit f8799228e2
+3 -1
View File
@@ -167,7 +167,9 @@ describe('MostPlayed owner-scoped artwork and actions', () => {
serverScope: expectedScope,
}),
}));
expect(mocks.wakeMissingMetadata).toHaveBeenCalledWith(ownerServer.id);
await waitFor(() => {
expect(mocks.wakeMissingMetadata).toHaveBeenCalledWith(ownerServer.id);
});
expect(mocks.useAlbumCoverRef).not.toHaveBeenCalledWith(
expect.anything(),
expect.anything(),