wait on score

This commit is contained in:
phiresky 2023-09-18 17:30:02 +00:00
parent 954b3f443d
commit 007f4f5319

View file

@ -591,7 +591,7 @@ test("Check that activity from another instance is sent to third instance", asyn
// Make sure alpha sees it
let alphaPostComments2 = await waitUntil(
() => 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].community.local).toBe(false);