From 337bc261f7076947caa011897324a2698fb6140a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20M=C3=B3ricz?= Date: Wed, 12 Mar 2025 18:17:52 +0100 Subject: [PATCH] temp: remove flakey ad-block tests --- apps/api/src/__tests__/snips/scrape.test.ts | 30 ++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/apps/api/src/__tests__/snips/scrape.test.ts b/apps/api/src/__tests__/snips/scrape.test.ts index fcba163f..4fc1fcb2 100644 --- a/apps/api/src/__tests__/snips/scrape.test.ts +++ b/apps/api/src/__tests__/snips/scrape.test.ts @@ -66,24 +66,24 @@ describe("Scrape tests", () => { }); if (!process.env.TEST_SUITE_SELF_HOSTED) { - describe("Ad blocking (f-e dependant)", () => { - it.concurrent("blocks ads by default", async () => { - const response = await scrape({ - url: "https://www.allrecipes.com/recipe/18185/yum/", - }); + // describe("Ad blocking (f-e dependant)", () => { + // it.concurrent("blocks ads by default", async () => { + // const response = await scrape({ + // url: "https://www.allrecipes.com/recipe/18185/yum/", + // }); - expect(response.markdown).not.toContain(".g.doubleclick.net/"); - }, 30000); + // expect(response.markdown).not.toContain(".g.doubleclick.net/"); + // }, 30000); - it.concurrent("doesn't block ads if explicitly disabled", async () => { - const response = await scrape({ - url: "https://www.allrecipes.com/recipe/18185/yum/", - blockAds: false, - }); + // it.concurrent("doesn't block ads if explicitly disabled", async () => { + // const response = await scrape({ + // url: "https://www.allrecipes.com/recipe/18185/yum/", + // blockAds: false, + // }); - expect(response.markdown).toMatch(/(\.g\.doubleclick\.net|amazon-adsystem\.com)\//); - }, 30000); - }); + // expect(response.markdown).toMatch(/(\.g\.doubleclick\.net|amazon-adsystem\.com)\//); + // }, 30000); + // }); describe("Location API (f-e dependant)", () => { it.concurrent("works without specifying an explicit location", async () => {