Skip to content

Commit aa6746f

Browse files
committed
test(*): Small tweak for custom content
1 parent 4b6f657 commit aa6746f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/components/chat/chat.spec.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('Chat', () => {
3333
`;
3434

3535
const textAreaActionsTemplate = () => html`
36-
<div>
36+
<div class="custom-actions">
3737
<igc-button>Upload</igc-button>
3838
<igc-button>Send</igc-button>
3939
</div>
@@ -591,10 +591,9 @@ describe('Chat', () => {
591591

592592
expect(sendButton).to.be.null;
593593
expect(fileInput).to.be.null;
594-
var buttons = inputArea.renderRoot.querySelectorAll(
595-
'igc-button[variant="contained"]'
596-
);
597-
expect(buttons.length).to.equal(2);
594+
var customActions =
595+
inputArea.renderRoot.querySelector('div.custom-actions');
596+
expect(customActions).not.to.be.null;
598597
});
599598

600599
it('should render messageHeader template', async () => {
@@ -901,7 +900,7 @@ describe('Chat', () => {
901900
isTyping: true,
902901
});
903902

904-
clock.tick(3000);
903+
clock.tick(3001);
905904
await elementUpdated(chat);
906905

907906
expect(eventSpy).calledWith('igcTypingChange');

0 commit comments

Comments
 (0)