Skip to content

Commit 9547217

Browse files
committed
Use size constants in a e2e test
1 parent b79fc88 commit 9547217

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

frontend/tests/test-variant-console/quotas/rpk-quota-creation.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { test } from '@playwright/test';
22

3+
import { sizeFactors } from '../../../src/utils/topic-utils';
34
import { createClientIdQuota, createUserQuota, deleteClientIdQuota, deleteUserQuota } from '../../shared/quota.utils';
45
import { QuotaPage } from '../utils/quota-page';
56

@@ -91,12 +92,12 @@ test.describe('Quotas - RPK Integration', () => {
9192

9293
await createClientIdQuota({
9394
clientId: quotaClient2,
94-
consumerByteRate: 4_194_304, // 4MB
95+
consumerByteRate: 4 * sizeFactors.MiB,
9596
});
9697

9798
await createUserQuota({
9899
user: quotaUser1,
99-
producerByteRate: 6_291_456, // 6MB
100+
producerByteRate: 6 * sizeFactors.MiB,
100101
controllerMutationRate: 3,
101102
});
102103
});

0 commit comments

Comments
 (0)