mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-21 22:27:08 +00:00
Trying again.
This commit is contained in:
parent
4997d4b0b5
commit
5768a4eda7
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue