Skip to content

Commit cc18d61

Browse files
CopilotOEvgeny
andauthored
Add "open group" step to copilot variant tests; revert for flaky adaptive card test (#5772)
* Initial plan * Add opening group action to copilot test files before first snapshot Co-authored-by: OEvgeny <2841858+OEvgeny@users.noreply.github.com> * Revert opening group action from custom.skip.html (flaky test) Co-authored-by: OEvgeny <2841858+OEvgeny@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: OEvgeny <2841858+OEvgeny@users.noreply.github.com>
1 parent 8955118 commit cc18d61

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

__tests__/html2/part-grouping/folded.skip.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,10 +286,14 @@
286286
// 2nd is sent with status not set to show the work is in
287287
directLine.emulateIncomingActivity(withCreativeWorkStatus(activities.at(1), undefined));
288288

289+
await pageConditions.numActivitiesShown(3);
290+
291+
// When (copilot): opening the group
292+
await host.click(document.querySelector('.collapsible-grouping__toggle'));
293+
289294
// Then: show both activities in the list:
290295
// 1st with the loading indicator
291296
// 2nd with an empty status indicator
292-
await pageConditions.numActivitiesShown(3);
293297
await host.snapshot('local');
294298

295299
// When folding the list:

__tests__/html2/part-grouping/index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,12 @@
347347
// 1st with the loading indicator
348348
// 2nd with an empty status indicator
349349
await pageConditions.numActivitiesShown(3);
350+
351+
// When (copilot): opening the group
352+
if (variant === 'copilot') {
353+
await host.click(document.querySelector('.collapsible-grouping__toggle'));
354+
}
355+
350356
await host.snapshot('local');
351357

352358
// When marking the 1st activity as 'Published':

0 commit comments

Comments
 (0)