Skip to content

Commit 09a411f

Browse files
committed
test changes
1 parent a35f5ee commit 09a411f

5 files changed

Lines changed: 34 additions & 2 deletions

__tests__/html2/fluentTheme/defaultFeedback.activity.html

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,47 @@
6060
await host.sendKeys('ENTER');
6161
await host.sendKeys('ENTER');
6262

63+
await host.snapshot('local');
64+
65+
// Dismiss like button
66+
await host.sendShiftTab(2);
67+
await host.sendKeys('ENTER');
68+
69+
await host.snapshot('local');
70+
71+
// Click like button
72+
await host.sendKeys('ENTER');
73+
6374
await pageConditions.became(
6475
'feedback form is open',
6576
() => document.activeElement === pageElements.byTestId('feedback sendbox'),
6677
1000
6778
);
6879

80+
// Go to cancel button
81+
await host.sendTab(2);
82+
await host.sendKeys('ENTER');
83+
6984
await host.snapshot('local');
7085

86+
pageElements.byTestId('send box text area').focus();
87+
await host.sendShiftTab(2);
88+
89+
await host.sendKeys('ENTER');
90+
// Send dislike
91+
await host.sendTab(1);
92+
await host.sendKeys('ENTER');
93+
94+
await pageConditions.became(
95+
'feedback form is open',
96+
() => document.activeElement === pageElements.byTestId('feedback sendbox'),
97+
1000
98+
);
99+
71100
await host.sendKeys('Test feedback');
101+
102+
await host.snapshot('local');
103+
72104
const { activity } = await directLine.actPostActivity(async () => {
73105
await host.sendTab(1);
74106
await host.sendKeys('ENTER');
@@ -81,9 +113,9 @@
81113
value: {
82114
actionName: 'feedback',
83115
actionValue: {
84-
reaction: 'like',
116+
reaction: 'dislike',
85117
feedback: {
86-
feedbackText: expect.any(String)
118+
feedbackText: 'Test feedback'
87119
}
88120
}
89121
}
-81 Bytes
Loading
13.8 KB
Loading
13.5 KB
Loading
22.3 KB
Loading

0 commit comments

Comments
 (0)