Skip to content

Commit 0c16cbe

Browse files
committed
test change
1 parent e189c98 commit 0c16cbe

1 file changed

Lines changed: 34 additions & 2 deletions

File tree

__tests__/html2/activity/feedback.form.activity.html

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,44 @@
6363
await host.sendKeys('ENTER');
6464
await host.sendKeys('ENTER');
6565

66+
await host.snapshot('local');
67+
68+
// Dismiss like button
69+
await host.sendShiftTab(1);
70+
await host.sendKeys('ENTER');
71+
72+
await host.snapshot('local');
73+
74+
// Click like button
75+
await host.sendKeys('ENTER');
76+
6677
await pageConditions.became(
6778
'feedback form is open',
6879
() => document.activeElement === pageElements.byTestId('feedback sendbox'),
6980
1000
7081
);
7182

83+
// Go to cancel button
84+
await host.sendTab(2);
85+
await host.sendKeys('ENTER');
86+
7287
await host.snapshot('local');
7388

89+
// Re-open feedback form
90+
pageElements.byTestId('send box text area').focus();
91+
await host.sendShiftTab(3);
92+
93+
await host.sendKeys('ENTER');
94+
// Send dislike
95+
await host.sendTab(1);
96+
await host.sendKeys('ENTER');
97+
98+
await pageConditions.became(
99+
'feedback form is open',
100+
() => document.activeElement === pageElements.byTestId('feedback sendbox'),
101+
1000
102+
);
103+
74104
await host.sendKeys('Test feedback');
75105
const { activity } = await directLine.actPostActivity(async () => {
76106
await host.sendTab(1);
@@ -84,14 +114,16 @@
84114
value: {
85115
actionName: 'feedback',
86116
actionValue: {
87-
reaction: 'like',
117+
reaction: 'dislike',
88118
feedback: {
89-
feedbackText: expect.any(String)
119+
feedbackText: expect.any('Test feedback')
90120
}
91121
}
92122
}
93123
})
94124
);
125+
126+
await host.snapshot('local');
95127
});
96128
</script>
97129
</body>

0 commit comments

Comments
 (0)