feat(crawl): includes/excludes fixes (FIR-1300) (#1303)

* feat(crawl): includes/excludes fixes pt. 1

* fix(snips): billing tests

* drop tha logs

* fix(ci): add replica url

* feat(crawl): drop initial scrape if it's not included

* feat(ci): more verbose logging

* fix crawl path in test

* fix(ci): wait for api

* fix(snips/scrape/ad): test for more pixels

* feat(js-sdk/crawl): add regexOnFullURL
This commit is contained in:
Gergő Móricz
2025-03-06 17:05:15 +01:00
committed by GitHub
parent f8df18ed6a
commit e1cfe1da48
11 changed files with 81 additions and 10 deletions
+6 -1
View File
@@ -125,13 +125,18 @@ describe("Billing tests", () => {
})
]);
expect(crawl1.success).toBe(true);
expect(crawl2.success).toBe(true);
// sum: x+5y credits
await sleepForBatchBilling();
const rc2 = (await creditUsage()).remaining_credits;
expect(rc1 - rc2).toBe(crawl1.body.completed + crawl2.body.completed * 5);
if (crawl1.success && crawl2.success) {
expect(rc1 - rc2).toBe(crawl1.completed + crawl2.completed * 5);
}
}, 300000);
it("bills map correctly", async () => {