From 4b80433b9535d9110751bc6e802b91da25c60b65 Mon Sep 17 00:00:00 2001 From: Fendy Heryanto Date: Wed, 28 Jan 2026 10:02:57 +0000 Subject: [PATCH] in batch of 100 to comply with new v2 api restriction --- tests/playwright/setup/demoTable.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/playwright/setup/demoTable.ts b/tests/playwright/setup/demoTable.ts index cc7aa2759b..0c90bd1b1e 100644 --- a/tests/playwright/setup/demoTable.ts +++ b/tests/playwright/setup/demoTable.ts @@ -268,7 +268,15 @@ async function createDemoTable({ break; } - await api.dbTableRow.bulkCreate('noco', context.base.id, table.id, rowAttributes); + const BATCH_SIZE = 100; + for (let i = 0; i < rowAttributes.length; i += BATCH_SIZE) { + await api.dbTableRow.bulkCreate( + 'noco', + context.base.id, + table.id, + rowAttributes.slice(i * BATCH_SIZE, i * BATCH_SIZE + BATCH_SIZE) + ); + } return table; }