Skip to content

Commit feb998c

Browse files
committed
test(Chat): Fixed the test for showing suggestions below input.
1 parent d4af765 commit feb998c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/chat/chat.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,9 @@ describe('Chat', () => {
312312
await elementUpdated(chat);
313313

314314
const { input, suggestionsContainer } = getChatDOM(chat);
315-
expect(suggestionsContainer.getBoundingClientRect().top).lessThanOrEqual(
316-
input.self.getBoundingClientRect().bottom
317-
);
315+
expect(
316+
suggestionsContainer.getBoundingClientRect().top
317+
).greaterThanOrEqual(input.self.getBoundingClientRect().bottom);
318318
});
319319

320320
it('should render typing indicator if `isTyping` is true', async () => {

0 commit comments

Comments
 (0)