Skip to content

Commit

Permalink
Text fix and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
abailly-akamai committed Feb 7, 2024
1 parent f32a472 commit ed91597
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const PlacementGroupsAssignLinodesDrawer = (
(${AFFINITY_TYPES[affinity_type]})`
: 'Linodes Assigned to Placement Group'}
</FormLabel>
<Typography component="span" fontSize="0.8rem">
<Typography component="span" display="block" fontSize="0.8rem">
Maximum Number of Linodes for this group:{' '}
{selectedPlacementGroup.capacity}
</Typography>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { renderWithTheme } from 'src/utilities/testHelpers';
import { PLACEMENT_GROUP_LINODES_ERROR_MESSAGE } from '../../constants';
import { PlacementGroupsLinodes } from './PlacementGroupsLinodes';

describe('PlacementGroupsLanding', () => {
describe('PlacementGroupsLinodes', () => {
it('renders an error state if placement groups are undefined', () => {
const { getByText } = renderWithTheme(
<PlacementGroupsLinodes placementGroup={undefined} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const defaultProps = {
loading: false,
};

describe('PlacementGroupsLanding', () => {
describe('PlacementGroupsLinodesTable', () => {
it('renders an error state when encountering an API error', () => {
const { getByText } = renderWithTheme(
<PlacementGroupsLinodesTable
Expand Down Expand Up @@ -44,6 +44,6 @@ describe('PlacementGroupsLanding', () => {
<PlacementGroupsLinodesTable {...defaultProps} />
);

expect(getAllByTestId(/placement-group-linode-/i)).toHaveLength(5);
expect(getAllByTestId(/placement-group-linode-/i)).toHaveLength(6);
});
});

0 comments on commit ed91597

Please sign in to comment.