From 01aa17f38e5cb88a3956cc5e4c4a810e1e522eb8 Mon Sep 17 00:00:00 2001 From: Nutomic Date: Wed, 13 Dec 2023 15:29:10 +0100 Subject: [PATCH] Reenable API tests that were accidentally skipped (#4259) * Reenable API tests that were accidentally skipped * log get comment parent id failure --- .gitignore | 1 - api_tests/src/community.spec.ts | 2 +- api_tests/src/shared.ts | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 6883b4ec..07a83820 100644 --- a/.gitignore +++ b/.gitignore @@ -20,7 +20,6 @@ query_testing/**/reports/*.json api_tests/node_modules api_tests/.yalc api_tests/yalc.lock -api_tests/test.png api_tests/pict-rs # pictrs data diff --git a/api_tests/src/community.spec.ts b/api_tests/src/community.spec.ts index fc5f347b..b4a58bb7 100644 --- a/api_tests/src/community.spec.ts +++ b/api_tests/src/community.spec.ts @@ -249,7 +249,7 @@ test("Admin actions in remote community are not federated to origin", async () = expect(gammaPost2.post_view.creator_banned_from_community).toBe(false); }); -test.only("moderator view", async () => { +test("moderator view", async () => { // register a new user with their own community on alpha and post to it let otherUser = await registerUser(alpha, alphaUrl); diff --git a/api_tests/src/shared.ts b/api_tests/src/shared.ts index d2193d90..0545eee5 100644 --- a/api_tests/src/shared.ts +++ b/api_tests/src/shared.ts @@ -863,6 +863,7 @@ export function getCommentParentId(comment: Comment): number | undefined { if (split.length > 1) { return Number(split[split.length - 2]); } else { + console.log(`Failed to extract comment parent id from ${comment.path}`); return undefined; } }