From c4bee9fe61cc9832eddf0092bc014dff6f4b8cb6 Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Sat, 8 Nov 2025 19:40:52 +0000 Subject: tests: fix crawling and search e2e tests (#2105) * tests: Attempt to fix flaky tests * fix internal address * fix assets tests --- packages/e2e_tests/tests/api/public.test.ts | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'packages/e2e_tests/tests/api/public.test.ts') diff --git a/packages/e2e_tests/tests/api/public.test.ts b/packages/e2e_tests/tests/api/public.test.ts index 4ad37036..59f50495 100644 --- a/packages/e2e_tests/tests/api/public.test.ts +++ b/packages/e2e_tests/tests/api/public.test.ts @@ -90,18 +90,14 @@ describe("Public API", () => { const trpcClient = getTrpcClient(apiKey); // Wait for link bookmark to be crawled and have a banner image (screenshot) - await waitUntil( - async () => { - const res = await trpcClient.bookmarks.getBookmark.query({ - bookmarkId: createBookmark1.id, - }); - assert(res.content.type === BookmarkTypes.LINK); - // Check for screenshotAssetId as bannerImageUrl might be derived from it or original imageUrl - return !!res.content.screenshotAssetId || !!res.content.imageUrl; - }, - "Bookmark is crawled and has banner info", - 20000, // Increased timeout as crawling can take time - ); + await waitUntil(async () => { + const res = await trpcClient.bookmarks.getBookmark.query({ + bookmarkId: createBookmark1.id, + }); + assert(res.content.type === BookmarkTypes.LINK); + // Check for screenshotAssetId as bannerImageUrl might be derived from it or original imageUrl + return !!res.content.screenshotAssetId || !!res.content.imageUrl; + }, "Bookmark is crawled and has banner info"); const res = await trpcClient.publicBookmarks.getPublicBookmarksInList.query( { -- cgit v1.2.3-70-g09d2