mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-28 16:37:44 +00:00
wait on score
This commit is contained in:
parent
954b3f443d
commit
007f4f5319
|
@ -591,7 +591,7 @@ test("Check that activity from another instance is sent to third instance", asyn
|
||||||
// Make sure alpha sees it
|
// Make sure alpha sees it
|
||||||
let alphaPostComments2 = await waitUntil(
|
let alphaPostComments2 = await waitUntil(
|
||||||
() => getComments(alpha, alphaPost!.post.id),
|
() => getComments(alpha, alphaPost!.post.id),
|
||||||
e => !!e.comments[0],
|
e => e.comments[0]?.counts.score === 1,
|
||||||
);
|
);
|
||||||
expect(alphaPostComments2.comments[0].comment.content).toBe(commentContent);
|
expect(alphaPostComments2.comments[0].comment.content).toBe(commentContent);
|
||||||
expect(alphaPostComments2.comments[0].community.local).toBe(false);
|
expect(alphaPostComments2.comments[0].community.local).toBe(false);
|
||||||
|
|
Loading…
Reference in a new issue