From f33f6eb9177cc30e1a382b929cf28203a5937ca0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20Sol=C3=A1r?= Date: Wed, 25 Nov 2026 15:25:51 +0100 Subject: [PATCH] test: test actors search pagination without a search query The Store API ignores offset when a search term is set, which broke two API tests on master. Co-Authored-By: Claude Opus 5.5 --- test/api/commands/actors/search.test.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/api/commands/actors/search.test.ts b/test/api/commands/actors/search.test.ts index 5ac49a340..2da4ed9ed 100644 --- a/test/api/commands/actors/search.test.ts +++ b/test/api/commands/actors/search.test.ts @@ -76,10 +76,10 @@ describe('[api] apify actors search', () => { expect(parsed.items.length).toBeLessThanOrEqual(2); }); + // The Store API ignores offset when a search query is set, so pagination is tested without one. it('should support pagination with offset', async () => { // Fetch first page await testRunCommand(ActorsSearchCommand, { - args_query: 'scraper', flags_json: true, flags_limit: 2, flags_offset: 0, @@ -88,7 +88,6 @@ describe('[api] apify actors search', () => { // Fetch second page await testRunCommand(ActorsSearchCommand, { - args_query: 'scraper', flags_json: true, flags_limit: 2, flags_offset: 2, @@ -194,7 +193,6 @@ describe('[api] apify actors search', () => { it('should return valid JSON structure with total and offset in JSON mode', async () => { await testRunCommand(ActorsSearchCommand, { - args_query: 'scraper', flags_json: true, flags_limit: 1, flags_offset: 5,