From 5768a4eda7386389c40916c48003e206c55e1e10 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 17 Dec 2020 14:36:22 -0500 Subject: [PATCH] Trying again. --- api_tests/src/post.spec.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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(); -- 2.44.1