diff options
| author | Mohamed Bassem <me@mbassem.com> | 2025-11-08 19:40:52 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-08 19:40:52 +0000 |
| commit | c4bee9fe61cc9832eddf0092bc014dff6f4b8cb6 (patch) | |
| tree | ff48f24e4921597fc9130c812575a9691ed600a5 /packages/e2e_tests/tests/api/public.test.ts | |
| parent | 098e56a8950efbef79e551e12622ae7c8cd90c03 (diff) | |
| download | karakeep-c4bee9fe61cc9832eddf0092bc014dff6f4b8cb6.tar.zst | |
tests: fix crawling and search e2e tests (#2105)
* tests: Attempt to fix flaky tests
* fix internal address
* fix assets tests
Diffstat (limited to 'packages/e2e_tests/tests/api/public.test.ts')
| -rw-r--r-- | packages/e2e_tests/tests/api/public.test.ts | 20 |
1 files changed, 8 insertions, 12 deletions
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( { |
