Skip to content

Commit 4032567

Browse files
committed
fix(chat): failing tests
1 parent 8a03d6e commit 4032567

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/components/chat/chat.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ describe('Chat', () => {
214214

215215
expect(inputArea).shadowDom.to.equal(
216216
`<div part="input-container">
217-
<div aria-label="Attachments" role="list">
217+
<div aria-label="Attachments" part="attachments" role="list">
218218
</div>
219219
<div part="input-wrapper">
220220
<igc-textarea
@@ -494,7 +494,7 @@ describe('Chat', () => {
494494

495495
expect(inputArea).shadowDom.to.equal(
496496
`<div part="input-container">
497-
<div aria-label="Attachments" role="list">
497+
<div aria-label="Attachments" part="attachments" role="list">
498498
</div>
499499
<div part="input-wrapper">
500500
<igc-textarea
@@ -558,7 +558,7 @@ describe('Chat', () => {
558558

559559
expect(inputArea).shadowDom.to.equal(
560560
`<div part="input-container">
561-
<div aria-label="Attachments" role="list">
561+
<div aria-label="Attachments" part="attachments" role="list">
562562
<div part="attachment-wrapper" role="listitem">
563563
<igc-chip removable="">
564564
<span part="attachment-name">
@@ -967,7 +967,7 @@ describe('Chat', () => {
967967

968968
expect(inputArea).shadowDom.to.equal(
969969
`<div part="input-container">
970-
<div aria-label="Attachments" role="list">
970+
<div aria-label="Attachments" part="attachments" role="list">
971971
<div>
972972
<a href=${draftMessage.attachments[0].url} target="_blank">
973973
${draftMessage.attachments[0].name}

src/components/chat/themes/message-list.base.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
:host {
55
display: block;
66
overflow-y: auto;
7+
flex: 1;
78
scrollbar-width: none;
89
}
910

0 commit comments

Comments
 (0)