Skip to content

Commit 383d8e4

Browse files
committed
frontend: fix test expecting hardcoded page size
Use MAX_PAGE_SIZE constant instead of hardcoded 500 in test assertion.
1 parent f3d4c50 commit 383d8e4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

frontend/src/components/pages/secrets-store/secrets-store-list-page.test.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { createRouterTransport } from '@connectrpc/connect';
1414
import { ListSecretsResponseSchema } from 'protogen/redpanda/api/console/v1alpha1/secret_pb';
1515
import { listSecrets } from 'protogen/redpanda/api/console/v1alpha1/secret-SecretService_connectquery';
1616
import { Scope, SecretSchema } from 'protogen/redpanda/api/dataplane/v1/secret_pb';
17+
import { MAX_PAGE_SIZE } from 'react-query/react-query.utils';
1718
import { renderWithFileRoutes, screen, waitFor } from 'test-utils';
1819

1920
vi.mock('state/ui-state', () => ({
@@ -67,7 +68,7 @@ describe('SecretsStoreListPage', () => {
6768
const callArgs = listSecretsMock.mock.calls[0];
6869
expect(callArgs[0]).toMatchObject({
6970
request: {
70-
pageSize: 500,
71+
pageSize: MAX_PAGE_SIZE,
7172
},
7273
});
7374
});

0 commit comments

Comments
 (0)