Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
OEvgeny committed Nov 1, 2024
1 parent 61e0586 commit 8b2ea0e
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 11 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion __tests__/html/autoScroll.withPostBack.activity.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@
}
],
from: {
id: 'bot',
role: 'bot'
},
id: '1',
Expand Down
1 change: 0 additions & 1 deletion __tests__/html/autoScroll.withPostBack.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@
}
],
from: {
id: 'bot',
role: 'bot'
},
id: '1',
Expand Down
2 changes: 2 additions & 0 deletions __tests__/html/typing/activityOrder.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
// SETUP: Bot sent a message.
await directLine.emulateIncomingActivity({
id: 'a-00001',
from: { id: 'u-00001', name: 'Bot', role: 'bot' },
text: 'Adipisicing cupidatat eu Lorem anim ut aute magna occaecat id cillum.',
type: 'message'
});
Expand Down Expand Up @@ -91,6 +92,7 @@
// WHEN: Bot send another message.
await directLine.emulateIncomingActivity({
id: 'a-00003',
from: { id: 'u-00001', name: 'Bot', role: 'bot' },
text: 'Amet consequat enim incididunt excepteur aliquip magna duis et tempor.',
type: 'message'
});
Expand Down
1 change: 1 addition & 0 deletions __tests__/html/typing/chunk.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
// SETUP: Bot sent a message.
await directLine.emulateIncomingActivity({
id: 'a-00001',
from: { id: 'u-00001', name: 'Bot', role: 'bot' },
text: 'Adipisicing cupidatat eu Lorem anim ut aute magna occaecat id cillum.',
type: 'message'
});
Expand Down
11 changes: 8 additions & 3 deletions __tests__/html/typing/informative.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,14 @@

await pageConditions.uiConnected();

await directLine.emulateIncomingActivity(
'Adipisicing cupidatat eu Lorem anim ut aute magna occaecat id cillum.'
);
await directLine.emulateIncomingActivity({
from: {
id: 'u-00001',
name: 'Bot',
role: 'bot'
},
text: 'Adipisicing cupidatat eu Lorem anim ut aute magna occaecat id cillum.'
});

const firstTypingActivityId = 't-00001';

Expand Down
1 change: 1 addition & 0 deletions __tests__/html/typing/outOfOrder.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
// SETUP: Bot sent a message.
await directLine.emulateIncomingActivity({
id: 'a-00001',
from: { id: 'u-00001', name: 'Bot', role: 'bot' },
text: 'Adipisicing cupidatat eu Lorem anim ut aute magna occaecat id cillum.',
timestamp: 0,
type: 'message'
Expand Down
1 change: 1 addition & 0 deletions __tests__/html/typing/outOfOrder.sequenceNumber.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
// SETUP: Bot sent a message.
await directLine.emulateIncomingActivity({
id: 'a-00001',
from: { id: 'u-00001', name: 'Bot', role: 'bot' },
text: 'Adipisicing cupidatat eu Lorem anim ut aute magna occaecat id cillum.',
timestamp: 0,
type: 'message'
Expand Down
12 changes: 6 additions & 6 deletions __tests__/html/typing/simultaneous.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
// WHEN: Bot is typing a message.
await directLine.emulateIncomingActivity({
channelData: { streamSequence: 1, streamType: 'streaming' },
from: { id: 'u-00001', name: 'Bot', role: 'bot' },
from: { name: 'Bot', role: 'bot' },
id: 't-00001',
text: 'A quick',
type: 'typing'
Expand Down Expand Up @@ -89,7 +89,7 @@
// WHEN: Bot is typing another message.
await directLine.emulateIncomingActivity({
channelData: { streamSequence: 1, streamType: 'streaming' },
from: { id: 'u-00001', name: 'Bot', role: 'bot' },
from: { name: 'Bot', role: 'bot' },
id: 't-10001',
text: 'Falsches Üben',
type: 'typing'
Expand Down Expand Up @@ -120,7 +120,7 @@
// WHEN: Bot continue typing the message.
await directLine.emulateIncomingActivity({
channelData: { streamSequence: 2, streamId: 't-00001', streamType: 'streaming' },
from: { id: 'u-00001', name: 'Bot', role: 'bot' },
from: { name: 'Bot', role: 'bot' },
id: 't-00002',
text: 'A quick brown fox',
type: 'typing'
Expand Down Expand Up @@ -149,7 +149,7 @@
// WHEN: Bot continue typing the third message.
await directLine.emulateIncomingActivity({
channelData: { streamSequence: 2, streamId: 't-10001', streamType: 'streaming' },
from: { id: 'u-00001', name: 'Bot', role: 'bot' },
from: { name: 'Bot', role: 'bot' },
id: 't-10002',
text: 'Falsches Üben von Xylophonmusik',
type: 'typing'
Expand Down Expand Up @@ -178,7 +178,7 @@
// WHEN: Bot finished typing the second message.
await directLine.emulateIncomingActivity({
channelData: { streamSequence: 3, streamId: 't-00001', streamType: 'streaming' },
from: { id: 'u-00001', name: 'Bot', role: 'bot' },
from: { name: 'Bot', role: 'bot' },
id: 'a-00002',
text: 'A quick brown fox jumped over the lazy dogs.',
type: 'message'
Expand Down Expand Up @@ -210,7 +210,7 @@
// WHEN: Bot finished typing the third message.
await directLine.emulateIncomingActivity({
channelData: { streamSequence: 3, streamId: 't-10001', streamType: 'streaming' },
from: { id: 'u-00001', name: 'Bot', role: 'bot' },
from: { name: 'Bot', role: 'bot' },
id: 'a-00003',
text: 'Falsches Üben von Xylophonmusik quält jeden größeren Zwerg.',
type: 'message'
Expand Down

0 comments on commit 8b2ea0e

Please sign in to comment.