Trying again.

This commit is contained in:
Dessalines 2020-12-17 14:36:22 -05:00
parent 4997d4b0b5
commit 5768a4eda7

View file

@ -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();