Files
n8n/packages/testing/playwright/tests/e2e/regression/ADO-2230-ndv-reset-data-pagination.spec.ts
alighasami 3d5eaf9445
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled
first commit
2026-03-17 16:22:57 +03:30

39 lines
1.2 KiB
TypeScript

import { test, expect } from '../../../fixtures/base';
test.describe('ADO-2230 NDV Pagination Reset', {
annotation: [
{ type: 'owner', description: 'Adore' },
],
}, () => {
test('should reset pagination if data size changes to less than current page', async ({
n8n,
}) => {
await n8n.start.fromImportedWorkflow('NDV-debug-generate-data.json');
await n8n.canvas.openNode('DebugHelper');
await n8n.ndv.execute();
await n8n.notifications.quickCloseAll();
const outputPagination = n8n.ndv.getOutputPagination();
await expect(outputPagination).toBeVisible();
await expect(n8n.ndv.getOutputPaginationPages()).toHaveCount(5);
await expect(n8n.ndv.outputPanel.getTbodyCell(0, 0)).not.toBeEmpty();
const firstPageContent = await n8n.ndv.outputPanel.getTbodyCell(0, 0).textContent();
await n8n.ndv.navigateToOutputPage(4);
await expect(n8n.ndv.outputPanel.getTbodyCell(0, 0)).not.toHaveText(firstPageContent ?? '');
await n8n.ndv.setParameterInputValue('randomDataCount', '50');
await n8n.ndv.execute();
await n8n.notifications.quickCloseAll();
await expect(n8n.ndv.getOutputPaginationPages()).toHaveCount(2);
await expect(n8n.ndv.outputPanel.getTbodyCell(0, 0)).not.toBeEmpty();
});
});