mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-17 06:25:53 +08:00
feat(api/tests/scrape): re-enable ad blocking tests
This commit is contained in:
parent
9f8c70d9db
commit
7aaabfec2a
@ -77,24 +77,24 @@ describe("Scrape tests", () => {
|
|||||||
expect(JSON.stringify(status)).toBe(JSON.stringify(response));
|
expect(JSON.stringify(status)).toBe(JSON.stringify(response));
|
||||||
}, 60000);
|
}, 60000);
|
||||||
|
|
||||||
// describe("Ad blocking (f-e dependant)", () => {
|
describe("Ad blocking (f-e dependant)", () => {
|
||||||
// it.concurrent("blocks ads by default", async () => {
|
it.concurrent("blocks ads by default", async () => {
|
||||||
// const response = await scrape({
|
const response = await scrape({
|
||||||
// url: "https://www.allrecipes.com/recipe/18185/yum/",
|
url: "https://www.allrecipes.com/recipe/18185/yum/",
|
||||||
// });
|
});
|
||||||
|
|
||||||
// expect(response.markdown).not.toContain(".g.doubleclick.net/");
|
expect(response.markdown).not.toContain(".g.doubleclick.net/");
|
||||||
// }, 30000);
|
}, 30000);
|
||||||
|
|
||||||
// it.concurrent("doesn't block ads if explicitly disabled", async () => {
|
it.concurrent("doesn't block ads if explicitly disabled", async () => {
|
||||||
// const response = await scrape({
|
const response = await scrape({
|
||||||
// url: "https://www.allrecipes.com/recipe/18185/yum/",
|
url: "https://www.allrecipes.com/recipe/18185/yum/",
|
||||||
// blockAds: false,
|
blockAds: false,
|
||||||
// });
|
});
|
||||||
|
|
||||||
// expect(response.markdown).toMatch(/(\.g\.doubleclick\.net|amazon-adsystem\.com)\//);
|
expect(response.markdown).toMatch(/(\.g\.doubleclick\.net|amazon-adsystem\.com)\//);
|
||||||
// }, 30000);
|
}, 30000);
|
||||||
// });
|
});
|
||||||
|
|
||||||
describe("Change Tracking format", () => {
|
describe("Change Tracking format", () => {
|
||||||
it.concurrent("works", async () => {
|
it.concurrent("works", async () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user