From: Dessalines Date: Tue, 22 Mar 2022 22:06:59 +0000 (-0400) Subject: Trying to fix api tests 2 X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%22https:/hacktivis.me/static/git-favicon.png?a=commitdiff_plain;h=500ca158935b71f3f7cd4f83a50c850538b2ef4a;p=lemmy.git Trying to fix api tests 2 --- diff --git a/api_tests/src/post.spec.ts b/api_tests/src/post.spec.ts index 0e9276f9..f545754f 100644 --- a/api_tests/src/post.spec.ts +++ b/api_tests/src/post.spec.ts @@ -285,14 +285,6 @@ test('Search for a post', async () => { expect(betaPost.post.name).toBeDefined(); }); -test('A and G subscribe to B (center) A posts, it gets announced to G', async () => { - let postRes = await createPost(alpha, betaCommunity.community.id); - expect(postRes.post_view.post).toBeDefined(); - - let betaPost = (await resolvePost(gamma, postRes.post_view.post)).post; - expect(betaPost.post.name).toBeDefined(); -}); - test('Enforce site ban for federated user', async () => { // create a test user let alphaUserJwt = await registerUser(alpha); @@ -378,6 +370,15 @@ test('Enforce community ban for federated user', async () => { expect(searchBeta2.posts[0]).toBeDefined(); }); + +test('A and G subscribe to B (center) A posts, it gets announced to G', async () => { + let postRes = await createPost(alpha, betaCommunity.community.id); + expect(postRes.post_view.post).toBeDefined(); + + let betaPost = (await resolvePost(gamma, postRes.post_view.post)).post; + expect(betaPost.post.name).toBeDefined(); +}); + test('Report a post', async () => { let betaCommunity = (await resolveBetaCommunity(beta)).community; let postRes = await createPost(beta, betaCommunity.community.id);