Skip to content

Commit

Permalink
removed testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
SB-harshitajadhav committed Dec 6, 2024
1 parent e56c51e commit eebc9ff
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions packages/elements-core/src/components/Docs/Model/Model.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ const exampleSchema: JSONSchema7 = {
},
};

const exampleStringSchema: JSONSchema7 = {
type: 'string',
description: 'example schema description that should only show once :)',
};

const model_data: JSONSchema7 = {
title: 'operator_reference',
description: 'description from allOf Operator',
Expand Down Expand Up @@ -183,13 +178,6 @@ describe('Model', () => {
expect(textboxDescription).toHaveTextContent('example schema description');
});

it('does not display description at top of doc for non-objects', async () => {
render(<Model data={exampleStringSchema} />);
const description = screen.queryByRole('textbox');

expect(description).not.toBeInTheDocument();
});

describe('export button', () => {
it('should render correctly', () => {
const wrapper = render(
Expand All @@ -198,7 +186,6 @@ describe('Model', () => {
data={exampleSchema}
exportProps={{ original: { onPress: jest.fn() }, bundled: { onPress: jest.fn() } }}
/>
,
</MosaicProvider>,
);

Expand Down Expand Up @@ -287,12 +274,9 @@ describe('Model', () => {
});
it('CombineSchema must have description', () => {
render(<Model data={model_data} {...props} />);
// const elem = screen.getByRole('paragraph', { name: /This is from Operaror_reference/ });
const elem = screen.getAllByText(/description from allOf Operator/);
const description = screen.queryByRole('textbox');

// expect('This is from Operaror_reference').toBeInTheDocument();
// expect(elem).toBeInTheDocument();
expect(elem[0]).toBeInTheDocument();
expect(description).toBeInTheDocument();
});
});
});

0 comments on commit eebc9ff

Please sign in to comment.