wait until ban post removed
This commit is contained in:
parent
ac0c0c8856
commit
1b7ab96887
1 changed files with 4 additions and 2 deletions
|
@ -419,8 +419,10 @@ test("Enforce site ban for federated user", async () => {
|
||||||
expect(alphaUserOnBeta1.person?.person.banned).toBe(true);
|
expect(alphaUserOnBeta1.person?.person.banned).toBe(true);
|
||||||
|
|
||||||
// existing alpha post should be removed on beta
|
// existing alpha post should be removed on beta
|
||||||
let searchBeta2 = await getPost(beta, searchBeta1.post.id);
|
let searchBeta2 = await waitUntil(
|
||||||
expect(searchBeta2.post_view.post.removed).toBe(true);
|
() => getPost(beta, searchBeta1.post.id),
|
||||||
|
s => s.post_view.post.removed,
|
||||||
|
);
|
||||||
|
|
||||||
// Unban alpha
|
// Unban alpha
|
||||||
let unBanAlpha = await banPersonFromSite(
|
let unBanAlpha = await banPersonFromSite(
|
||||||
|
|
Loading…
Reference in a new issue