From: Dessalines Date: Thu, 17 Dec 2020 19:36:22 +0000 (-0500) Subject: Trying again. X-Git-Url: http://these/git/%22https:/image.com/%7B%60%24%7BghostArchiveUrl%7D/static/readmes/README.zh.hans.md?a=commitdiff_plain;h=5768a4eda7386389c40916c48003e206c55e1e10;p=lemmy.git Trying again. --- diff --git a/api_tests/src/post.spec.ts b/api_tests/src/post.spec.ts index f44bd586..67fb6c3b 100644 --- a/api_tests/src/post.spec.ts +++ b/api_tests/src/post.spec.ts @@ -250,14 +250,13 @@ test('Remove a post from admin and community on different instance', async () => }); test('Remove a post from admin and community on same instance', async () => { + await followBeta(alpha); let postRes = await createPost(alpha, betaCommunity.id); // Get the id for beta let searchBeta = await searchPost(beta, postRes.post); let betaPost = searchBeta.posts[0]; - await followBeta(alpha); - // The beta admin removes it (the community lives on beta) let removePostRes = await removePost(beta, true, betaPost); expect(removePostRes.post.removed).toBe(true); @@ -280,6 +279,8 @@ test('Remove a post from admin and community on same instance', async () => { test('Search for a post', async () => { let postRes = await createPost(alpha, betaCommunity.id); + expect(postRes.post).toBeDefined(); + let searchBeta = await searchPost(beta, postRes.post); expect(searchBeta.posts[0].name).toBeDefined();