mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-29 00:42:19 +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 () => {
|
test('Remove a post from admin and community on same instance', async () => {
|
||||||
|
await followBeta(alpha);
|
||||||
let postRes = await createPost(alpha, betaCommunity.id);
|
let postRes = await createPost(alpha, betaCommunity.id);
|
||||||
|
|
||||||
// Get the id for beta
|
// Get the id for beta
|
||||||
let searchBeta = await searchPost(beta, postRes.post);
|
let searchBeta = await searchPost(beta, postRes.post);
|
||||||
let betaPost = searchBeta.posts[0];
|
let betaPost = searchBeta.posts[0];
|
||||||
|
|
||||||
await followBeta(alpha);
|
|
||||||
|
|
||||||
// The beta admin removes it (the community lives on beta)
|
// The beta admin removes it (the community lives on beta)
|
||||||
let removePostRes = await removePost(beta, true, betaPost);
|
let removePostRes = await removePost(beta, true, betaPost);
|
||||||
expect(removePostRes.post.removed).toBe(true);
|
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 () => {
|
test('Search for a post', async () => {
|
||||||
let postRes = await createPost(alpha, betaCommunity.id);
|
let postRes = await createPost(alpha, betaCommunity.id);
|
||||||
|
expect(postRes.post).toBeDefined();
|
||||||
|
|
||||||
let searchBeta = await searchPost(beta, postRes.post);
|
let searchBeta = await searchPost(beta, postRes.post);
|
||||||
|
|
||||||
expect(searchBeta.posts[0].name).toBeDefined();
|
expect(searchBeta.posts[0].name).toBeDefined();
|
||||||
|
|
Loading…
Reference in a new issue