Skip to content

Commit f164850

Browse files
authored
refactor(observability): refactor tenant form creation layout
resolves: #MAOBS-120 Signed-off-by: David Arsène <[email protected]>
1 parent b1daa1f commit f164850

File tree

10 files changed

+622
-73
lines changed

10 files changed

+622
-73
lines changed

packages/manager/apps/observability/src/__tests__/components/form/information-form/InformationForm.component.spec.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,15 +270,12 @@ describe('InformationForm', () => {
270270

271271
describe('Component Structure', () => {
272272
it('should render with correct field types and layout', () => {
273-
const { container } = render(
273+
render(
274274
<TestWrapper>
275275
<InformationForm {...defaultProps} />
276276
</TestWrapper>,
277277
);
278278

279-
const gridContainer = container.querySelector('.grid.grid-cols-1.gap-4.mt-6');
280-
expect(gridContainer).toBeInTheDocument();
281-
282279
const titleInput = screen.getByTestId('title-input');
283280
const descriptionInput = screen.getByTestId('description-input');
284281

packages/manager/apps/observability/src/__tests__/components/metrics/tenant-configuration-form/TenantConfigurationForm.component.spec.tsx

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -648,17 +648,4 @@ describe('TenantConfigurationForm', () => {
648648
expect(quantityInput).toHaveValue(null);
649649
});
650650
});
651-
652-
describe('Component Structure', () => {
653-
it('should render all form fields in correct structure', () => {
654-
const { container } = render(
655-
<TestWrapper defaultValues={{ infrastructureId: 'infra-123', maxSeries: 100 }}>
656-
<TenantConfigurationForm />
657-
</TestWrapper>,
658-
);
659-
660-
const gridContainer = container.querySelector('.grid.grid-cols-1.gap-4');
661-
expect(gridContainer).toBeInTheDocument();
662-
});
663-
});
664651
});

0 commit comments

Comments
 (0)