Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/containers/Cluster/ClusterOverview/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions tests/suites/sidebar/sidebar.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand Down
Loading