Skip to content

Commit 40a07cb

Browse files
committed
Merge branch 'dmdimitrov/chat-ai-component' of https://github.com/IgniteUI/igniteui-webcomponents into dmdimitrov/chat-ai-component
2 parents 5bcea88 + ad879b1 commit 40a07cb

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/components/chat/chat.spec.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,6 @@ describe('Chat', () => {
645645
await elementUpdated(chat);
646646
simulateClick(sendButton);
647647
await elementUpdated(chat);
648-
await aTimeout(500);
649648

650649
expect(eventSpy).calledWith('igcMessageCreated');
651650
const eventArgs = eventSpy.getCall(1).args[1]?.detail;
@@ -702,7 +701,6 @@ describe('Chat', () => {
702701
) as HTMLInputElement;
703702
simulateFileUpload(fileInput, files);
704703
await elementUpdated(chat);
705-
await aTimeout(500);
706704

707705
expect(
708706
inputArea?.shadowRoot?.querySelectorAll('igc-chip').length
@@ -746,7 +744,6 @@ describe('Chat', () => {
746744
it('should update like button state on click', async () => {
747745
chat.messages = [messages[0]];
748746
await elementUpdated(chat);
749-
await aTimeout(500);
750747

751748
const messageContainer = chat.shadowRoot?.querySelector(
752749
'div[part="message-list"]'
@@ -919,7 +916,6 @@ describe('Chat', () => {
919916
const eventSpy = spy(chat, 'emitEvent');
920917
chat.messages = [messages[1]];
921918
await elementUpdated(chat);
922-
await aTimeout(500);
923919

924920
const messageElement = chat.shadowRoot
925921
?.querySelector(`div[part='message-list'`)
@@ -990,7 +986,6 @@ describe('Chat', () => {
990986
const eventSpy = spy(chat, 'emitEvent');
991987
chat.messages = [messages[0]];
992988
await elementUpdated(chat);
993-
await aTimeout(500);
994989

995990
const messageElement = chat.shadowRoot
996991
?.querySelector(`div[part='message-list'`)
@@ -1039,7 +1034,6 @@ describe('Chat', () => {
10391034

10401035
simulateFileUpload(fileInput, files);
10411036
await elementUpdated(chat);
1042-
aTimeout(500);
10431037

10441038
expect(
10451039
inputArea?.shadowRoot?.querySelectorAll('igc-chip').length

0 commit comments

Comments
 (0)