Skip to content

Commit

Permalink
update filter and tests to update with essiential use case change
Browse files Browse the repository at this point in the history
Signed-off-by: tygao <tygao@amazon.com>
  • Loading branch information
raintygao committed Aug 12, 2024
1 parent cffca1e commit f069430
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ describe('WorkspaceUseCase', () => {

const { renderResult } = setup();
await waitFor(() => {
expect(renderResult.queryByText('Analytics')).toBeInTheDocument();
expect(renderResult.queryByText('Essentials')).toBeInTheDocument();
expect(renderResult.queryByText('Observability')).not.toBeInTheDocument();
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const WorkspaceUseCase = ({
// When creating and isOnlyAllowEssential is true, only display essential use case
if (isOnlyAllowEssential && operationType === WorkspaceOperationType.Create) {
allAvailableUseCases = allAvailableUseCases.filter(
(item) => item.id === DEFAULT_NAV_GROUPS.analytics.id
(item) => item.id === DEFAULT_NAV_GROUPS.essentials.id
);
}
return allAvailableUseCases;
Expand Down

0 comments on commit f069430

Please sign in to comment.