From 45c7dde5786c7291c64e6d4dba1d50c76438795b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 6 Mar 2026 23:36:50 +0000 Subject: [PATCH 1/3] Initial plan From a1d282cf33ad4fb18eea644c3a37e56e9d54047e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 6 Mar 2026 23:46:40 +0000 Subject: [PATCH 2/3] Add opening group action to copilot test files before first snapshot Co-authored-by: OEvgeny <2841858+OEvgeny@users.noreply.github.com> --- __tests__/html2/attachment/adaptiveCard/custom.skip.html | 5 +++++ __tests__/html2/part-grouping/folded.skip.html | 6 +++++- __tests__/html2/part-grouping/index.html | 6 ++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/__tests__/html2/attachment/adaptiveCard/custom.skip.html b/__tests__/html2/attachment/adaptiveCard/custom.skip.html index 3ccbc3f4d6..f0ea31c172 100644 --- a/__tests__/html2/attachment/adaptiveCard/custom.skip.html +++ b/__tests__/html2/attachment/adaptiveCard/custom.skip.html @@ -155,6 +155,11 @@ } }); + // When (copilot): opening the group + if (searchParams.get('variant') === 'copilot') { + await host.click(document.querySelector('.collapsible-grouping__toggle')); + } + // Then: should apply styles for buttons correctly await host.snapshot('local'); diff --git a/__tests__/html2/part-grouping/folded.skip.html b/__tests__/html2/part-grouping/folded.skip.html index 0a729fc598..a120b0c938 100644 --- a/__tests__/html2/part-grouping/folded.skip.html +++ b/__tests__/html2/part-grouping/folded.skip.html @@ -286,10 +286,14 @@ // 2nd is sent with status not set to show the work is in directLine.emulateIncomingActivity(withCreativeWorkStatus(activities.at(1), undefined)); + await pageConditions.numActivitiesShown(3); + + // When (copilot): opening the group + await host.click(document.querySelector('.collapsible-grouping__toggle')); + // Then: show both activities in the list: // 1st with the loading indicator // 2nd with an empty status indicator - await pageConditions.numActivitiesShown(3); await host.snapshot('local'); // When folding the list: diff --git a/__tests__/html2/part-grouping/index.html b/__tests__/html2/part-grouping/index.html index 80cd5fc2dd..151b8b3d8b 100644 --- a/__tests__/html2/part-grouping/index.html +++ b/__tests__/html2/part-grouping/index.html @@ -347,6 +347,12 @@ // 1st with the loading indicator // 2nd with an empty status indicator await pageConditions.numActivitiesShown(3); + + // When (copilot): opening the group + if (variant === 'copilot') { + await host.click(document.querySelector('.collapsible-grouping__toggle')); + } + await host.snapshot('local'); // When marking the 1st activity as 'Published': From f5160958fa7c17aa8bef0601fd42aebbaafefd35 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 6 Mar 2026 23:54:58 +0000 Subject: [PATCH 3/3] Revert opening group action from custom.skip.html (flaky test) Co-authored-by: OEvgeny <2841858+OEvgeny@users.noreply.github.com> --- __tests__/html2/attachment/adaptiveCard/custom.skip.html | 5 ----- 1 file changed, 5 deletions(-) diff --git a/__tests__/html2/attachment/adaptiveCard/custom.skip.html b/__tests__/html2/attachment/adaptiveCard/custom.skip.html index f0ea31c172..3ccbc3f4d6 100644 --- a/__tests__/html2/attachment/adaptiveCard/custom.skip.html +++ b/__tests__/html2/attachment/adaptiveCard/custom.skip.html @@ -155,11 +155,6 @@ } }); - // When (copilot): opening the group - if (searchParams.get('variant') === 'copilot') { - await host.click(document.querySelector('.collapsible-grouping__toggle')); - } - // Then: should apply styles for buttons correctly await host.snapshot('local');