diff --git a/frontend/packages/console-app/src/components/nodes/NodeLogs.tsx b/frontend/packages/console-app/src/components/nodes/NodeLogs.tsx index 7364972518d..208a40a74d9 100644 --- a/frontend/packages/console-app/src/components/nodes/NodeLogs.tsx +++ b/frontend/packages/console-app/src/components/nodes/NodeLogs.tsx @@ -1,7 +1,6 @@ import * as React from 'react'; import { Alert, - Checkbox, EmptyState, EmptyStateBody, EmptyStateVariant, @@ -15,6 +14,7 @@ import { ToolbarContent, ToolbarGroup, ToolbarItem, + Switch, } from '@patternfly/react-core'; import { LogViewer, LogViewerSearch } from '@patternfly/react-log-viewer'; import classnames from 'classnames'; @@ -94,7 +94,7 @@ const LogControls: React.FC = ({ const { t } = useTranslation(); return ( - + @@ -151,7 +151,7 @@ const LogControls: React.FC = ({ )} - { // Verify the default log buffer size cy.byTestID('no-log-lines').contains('1000 lines'); // Verify the log exceeds the default log buffer size - cy.byTestID('show-full-log').check(); + cy.byTestID('show-full-log').check({ force: true }); // force as checkbox is hidden (from Switch) // eslint-disable-next-line cypress/no-unnecessary-waiting cy.wait(5000); cy.byTestID('no-log-lines').should('not.contain', '1000 lines'); diff --git a/frontend/public/components/utils/resource-log.tsx b/frontend/public/components/utils/resource-log.tsx index ac0e81604a7..8e8efbcdfc7 100644 --- a/frontend/public/components/utils/resource-log.tsx +++ b/frontend/public/components/utils/resource-log.tsx @@ -7,7 +7,6 @@ import { Alert, AlertActionLink, Button, - Checkbox, Divider, Dropdown, DropdownGroup, @@ -18,6 +17,7 @@ import { Select, SelectList, SelectOption, + Switch, Tooltip, } from '@patternfly/react-core'; import { LogViewer, LogViewerSearch } from '@patternfly/react-log-viewer'; @@ -313,7 +313,7 @@ export const LogControls: React.FC = ({ - = ({ ); const wrapLines = ( - = ({ default: 'vertical', }} /> - {wrapLines} +
{wrapLines}