Skip to content

Commit 86198dd

Browse files
Copilothotlong
andcommitted
Remove chatbot and timeline tests from components package
These components have been moved to separate plugin packages (plugin-chatbot and plugin-timeline), so the tests should not expect them to be registered in the core components package. Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 0bf9927 commit 86198dd

File tree

2 files changed

+0
-78
lines changed

2 files changed

+0
-78
lines changed

packages/components/src/__tests__/complex-disclosure-renderers.test.tsx

Lines changed: 0 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -101,45 +101,6 @@ describe('Disclosure Renderers - Display Issue Detection', () => {
101101
* Comprehensive tests for complex renderer components
102102
*/
103103
describe('Complex Renderers - Display Issue Detection', () => {
104-
describe('Timeline Renderer', () => {
105-
it('should be properly registered', () => {
106-
const validation = validateComponentRegistration('timeline');
107-
expect(validation.isRegistered).toBe(true);
108-
});
109-
110-
it('should render timeline with events', () => {
111-
const { container } = renderComponent({
112-
type: 'timeline',
113-
items: [
114-
{
115-
title: 'Event 1',
116-
description: 'Description 1',
117-
time: '2024-01-01',
118-
},
119-
{
120-
title: 'Event 2',
121-
description: 'Description 2',
122-
time: '2024-01-02',
123-
},
124-
],
125-
});
126-
127-
expect(container.textContent).toContain('Event 1');
128-
expect(container.textContent).toContain('Event 2');
129-
});
130-
131-
it('should handle empty timeline', () => {
132-
const { container } = renderComponent({
133-
type: 'timeline',
134-
items: [],
135-
});
136-
137-
const domCheck = checkDOMStructure(container);
138-
// Empty timeline is acceptable
139-
expect(domCheck).toBeDefined();
140-
});
141-
});
142-
143104
describe('Data Table Renderer', () => {
144105
it('should be properly registered', () => {
145106
const validation = validateComponentRegistration('data-table');
@@ -188,36 +149,6 @@ describe('Complex Renderers - Display Issue Detection', () => {
188149
});
189150
});
190151

191-
describe('Chatbot Renderer', () => {
192-
it('should be properly registered', () => {
193-
const validation = validateComponentRegistration('chatbot');
194-
expect(validation.isRegistered).toBe(true);
195-
});
196-
197-
it('should render chatbot interface', () => {
198-
const { container } = renderComponent({
199-
type: 'chatbot',
200-
messages: [
201-
{ role: 'user', content: 'Hello' },
202-
{ role: 'assistant', content: 'Hi there!' },
203-
],
204-
});
205-
206-
expect(container.textContent).toContain('Hello');
207-
expect(container.textContent).toContain('Hi there!');
208-
});
209-
210-
it('should handle empty messages', () => {
211-
const { container } = renderComponent({
212-
type: 'chatbot',
213-
messages: [],
214-
});
215-
216-
const domCheck = checkDOMStructure(container);
217-
expect(domCheck).toBeDefined();
218-
});
219-
});
220-
221152
describe('Carousel Renderer', () => {
222153
it('should be properly registered', () => {
223154
const validation = validateComponentRegistration('carousel');

packages/components/src/new-components.test.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,4 @@ describe('New Components Registration', () => {
7070
expect(component?.label).toBe('Loading');
7171
});
7272
});
73-
74-
describe('Complex Components', () => {
75-
it('should register timeline component', () => {
76-
const component = ComponentRegistry.getConfig('timeline');
77-
expect(component).toBeDefined();
78-
expect(component?.label).toBe('Timeline');
79-
expect(component?.category).toBe('data-display');
80-
});
81-
});
8273
});

0 commit comments

Comments
 (0)