aboutsummaryrefslogtreecommitdiffstats
path: root/packages/e2e_tests/tests/workers/crawler.test.ts
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2025-11-08 19:40:52 +0000
committerGitHub <noreply@github.com>2025-11-08 19:40:52 +0000
commitc4bee9fe61cc9832eddf0092bc014dff6f4b8cb6 (patch)
treeff48f24e4921597fc9130c812575a9691ed600a5 /packages/e2e_tests/tests/workers/crawler.test.ts
parent098e56a8950efbef79e551e12622ae7c8cd90c03 (diff)
downloadkarakeep-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/workers/crawler.test.ts')
-rw-r--r--packages/e2e_tests/tests/workers/crawler.test.ts30
1 files changed, 11 insertions, 19 deletions
diff --git a/packages/e2e_tests/tests/workers/crawler.test.ts b/packages/e2e_tests/tests/workers/crawler.test.ts
index bd01a22e..534f9f2a 100644
--- a/packages/e2e_tests/tests/workers/crawler.test.ts
+++ b/packages/e2e_tests/tests/workers/crawler.test.ts
@@ -49,16 +49,12 @@ describe("Crawler Tests", () => {
});
assert(bookmark);
- await waitUntil(
- async () => {
- const data = await getBookmark(bookmark!.id);
- assert(data);
- assert(data.content.type === "link");
- return data.content.crawledAt !== null;
- },
- "Bookmark is crawled",
- 20000,
- );
+ await waitUntil(async () => {
+ const data = await getBookmark(bookmark!.id);
+ assert(data);
+ assert(data.content.type === "link");
+ return data.content.crawledAt !== null;
+ }, "Bookmark is crawled");
bookmark = await getBookmark(bookmark.id);
assert(bookmark && bookmark.content.type === "link");
@@ -80,15 +76,11 @@ describe("Crawler Tests", () => {
});
assert(bookmark);
- await waitUntil(
- async () => {
- const data = await getBookmark(bookmark!.id);
- assert(data);
- return data.content.type === "asset";
- },
- "Bookmark is crawled and converted to an image",
- 20000,
- );
+ await waitUntil(async () => {
+ const data = await getBookmark(bookmark!.id);
+ assert(data);
+ return data.content.type === "asset";
+ }, "Bookmark is crawled and converted to an image");
bookmark = await getBookmark(bookmark.id);
assert(bookmark && bookmark.content.type === "asset");