Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions test/api/commands/actors/search.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
Loading