Skip to content

Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.

test: fix e2e tests for zero concurrency

Martin Adámek663595da6be2
diff --git a/test/e2e/request-queue-zero-concurrency/actor/main.js b/test/e2e/request-queue-zero-concurrency/actor/main.js
index 977970f4b..0d5f0d382 100644
--- a/test/e2e/request-queue-zero-concurrency/actor/main.js
+++ b/test/e2e/request-queue-zero-concurrency/actor/main.js
@@ -1,5 +1,5 @@
+import { CheerioCrawler, log, RequestQueueV1 } from '@crawlee/cheerio';
import { Actor } from 'apify';
-import { CheerioCrawler, log, RequestQueue } from '@crawlee/cheerio';
log.setLevel(log.LEVELS.DEBUG);
@@ -12,7 +12,7 @@ const mainOptions = {
// RequestQueue auto-reset when stuck with requests in progress
await Actor.main(async () => {
- const requestQueue = await RequestQueue.open();
+ const requestQueue = await RequestQueueV1.open();
await requestQueue.addRequest({ url: 'https://example.com/?q=1' });
await requestQueue.addRequest({ url: 'https://example.com/?q=2' });
const r3 = await requestQueue.addRequest({ url: 'https://example.com/?q=3' });