Skip to content

Commit

Permalink
upcoming: [DI-20928] - Resource to Resources
Browse files Browse the repository at this point in the history
  • Loading branch information
vmangalr committed Oct 17, 2024
1 parent 0332671 commit c3ea831
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const LINODE_CONFIG: Readonly<CloudPulseServiceTypeFilterMap> = {
isMultiSelect: true,
name: 'Resources',
neededInServicePage: false,
placeholder: 'Select a Resource',
placeholder: 'Select Resources',
priority: 2,
},
name: 'Resources',
Expand Down Expand Up @@ -98,9 +98,9 @@ export const DBAAS_CONFIG: Readonly<CloudPulseServiceTypeFilterMap> = {
isFilterable: true,
isMetricsFilter: true,
isMultiSelect: true,
name: 'DB Cluster',
name: 'DB Clusters',
neededInServicePage: false,
placeholder: 'Select a DB Cluster',
placeholder: 'Select DB Clusters',
priority: 3,
},
name: 'Resources',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ describe('ComponentRenderer component tests', () => {
})}
</Grid>
);
expect(getByPlaceholderText('Select a Resource')).toBeDefined();
expect(getByPlaceholderText('Select Resources')).toBeDefined();
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('CloudPulseResourcesSelect component tests', () => {
);
expect(getByTestId('resource-select')).toBeInTheDocument();
expect(screen.getByLabelText('Resources')).toBeInTheDocument();
expect(getByPlaceholderText('Select a Resource')).toBeInTheDocument();
expect(getByPlaceholderText('Select Resources')).toBeInTheDocument();
}),
it('should render resources happy path', () => {
queryMocks.useResourcesQuery.mockReturnValue({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export const CloudPulseResourcesSelect = React.memo(
isAutocompleteOpen.current = true;
}}
placeholder={
selectedResources?.length ? '' : placeholder || 'Select a Resource'
selectedResources?.length ? '' : placeholder || 'Select Resources'
}
textFieldProps={{
InputProps: {
Expand Down

0 comments on commit c3ea831

Please sign in to comment.