mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-12 11:59:01 +08:00
temporarily disable some flaky tests
This commit is contained in:
parent
415603acb0
commit
a461f72d17
@ -37,37 +37,39 @@ describe("Crawl tests", () => {
|
||||
}
|
||||
}, 120000);
|
||||
|
||||
it.concurrent("discovers URLs properly when origin is not included", async () => {
|
||||
const res = await crawl({
|
||||
url: "https://firecrawl.dev",
|
||||
includePaths: ["^/blog"],
|
||||
ignoreSitemap: true,
|
||||
limit: 10,
|
||||
});
|
||||
// TEMP: Flaky
|
||||
// it.concurrent("discovers URLs properly when origin is not included", async () => {
|
||||
// const res = await crawl({
|
||||
// url: "https://firecrawl.dev",
|
||||
// includePaths: ["^/blog"],
|
||||
// ignoreSitemap: true,
|
||||
// limit: 10,
|
||||
// });
|
||||
|
||||
expect(res.success).toBe(true);
|
||||
if (res.success) {
|
||||
expect(res.data.length).toBeGreaterThan(1);
|
||||
for (const page of res.data) {
|
||||
expect(page.metadata.url ?? page.metadata.sourceURL).toMatch(/^https:\/\/(www\.)?firecrawl\.dev\/blog/);
|
||||
}
|
||||
}
|
||||
}, 120000);
|
||||
// expect(res.success).toBe(true);
|
||||
// if (res.success) {
|
||||
// expect(res.data.length).toBeGreaterThan(1);
|
||||
// for (const page of res.data) {
|
||||
// expect(page.metadata.url ?? page.metadata.sourceURL).toMatch(/^https:\/\/(www\.)?firecrawl\.dev\/blog/);
|
||||
// }
|
||||
// }
|
||||
// }, 120000);
|
||||
|
||||
it.concurrent("discovers URLs properly when maxDiscoveryDepth is provided", async () => {
|
||||
const res = await crawl({
|
||||
url: "https://firecrawl.dev",
|
||||
ignoreSitemap: true,
|
||||
maxDiscoveryDepth: 1,
|
||||
limit: 10,
|
||||
});
|
||||
// TEMP: Flaky
|
||||
// it.concurrent("discovers URLs properly when maxDiscoveryDepth is provided", async () => {
|
||||
// const res = await crawl({
|
||||
// url: "https://firecrawl.dev",
|
||||
// ignoreSitemap: true,
|
||||
// maxDiscoveryDepth: 1,
|
||||
// limit: 10,
|
||||
// });
|
||||
|
||||
expect(res.success).toBe(true);
|
||||
if (res.success) {
|
||||
expect(res.data.length).toBeGreaterThan(1);
|
||||
for (const page of res.data) {
|
||||
expect(page.metadata.url ?? page.metadata.sourceURL).not.toMatch(/^https:\/\/(www\.)?firecrawl\.dev\/blog\/.+$/);
|
||||
}
|
||||
}
|
||||
}, 120000);
|
||||
// expect(res.success).toBe(true);
|
||||
// if (res.success) {
|
||||
// expect(res.data.length).toBeGreaterThan(1);
|
||||
// for (const page of res.data) {
|
||||
// expect(page.metadata.url ?? page.metadata.sourceURL).not.toMatch(/^https:\/\/(www\.)?firecrawl\.dev\/blog\/.+$/);
|
||||
// }
|
||||
// }
|
||||
// }, 120000);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user