From 85195ae112c47ff12b34978acab3ef3ec2262208 Mon Sep 17 00:00:00 2001 From: Elena Makarova Date: Thu, 13 Nov 2025 10:27:30 +0300 Subject: [PATCH 1/2] fix: show truthful percents on doughnuts --- src/containers/Cluster/ClusterOverview/utils.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/containers/Cluster/ClusterOverview/utils.tsx b/src/containers/Cluster/ClusterOverview/utils.tsx index e66b5a52c8..b990b2ed88 100644 --- a/src/containers/Cluster/ClusterOverview/utils.tsx +++ b/src/containers/Cluster/ClusterOverview/utils.tsx @@ -34,8 +34,7 @@ export function getDiagramValues({ }) { const parsedValue = parseFloat(String(value)); const parsedCapacity = parseFloat(String(capacity)); - let fillWidth = (parsedValue / parsedCapacity) * 100 || 0; - fillWidth = fillWidth > 100 ? 100 : fillWidth; + const fillWidth = (parsedValue / parsedCapacity) * 100 || 0; const legend = legendFormatter({ value: parsedValue, From 3b9962f4deb2a80135a0107b79550f8cbc4a6902 Mon Sep 17 00:00:00 2001 From: Elena Makarova Date: Thu, 13 Nov 2025 12:05:27 +0300 Subject: [PATCH 2/2] fix: flapping tests --- tests/suites/sidebar/sidebar.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/suites/sidebar/sidebar.test.ts b/tests/suites/sidebar/sidebar.test.ts index 20314fa984..5816221309 100644 --- a/tests/suites/sidebar/sidebar.test.ts +++ b/tests/suites/sidebar/sidebar.test.ts @@ -63,6 +63,7 @@ test.describe('Test Sidebar', async () => { test('Information popup contains documentation and keyboard shortcuts', async ({page}) => { const sidebar = new Sidebar(page); await sidebar.waitForSidebarToLoad(); + await page.waitForTimeout(1000); // Wait for page to load fully // Click the Information button to open the popup await sidebar.clickInformation(); @@ -83,6 +84,7 @@ test.describe('Test Sidebar', async () => { }) => { const sidebar = new Sidebar(page); await sidebar.waitForSidebarToLoad(); + await page.waitForTimeout(1000); // Wait for page to load fully // Click the Information button to open the popup await sidebar.clickInformation();