diff --git a/CHANGELOG.md b/CHANGELOG.md index 883c7b9207..33924543b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -102,7 +102,10 @@ Breaking changes in this release: - Resolved [#5463](https://github.com/microsoft/BotFramework-WebChat/issues/5463). Added attachment preview for `sendAttachmentOn: "send"`, in PR [#5464](https://github.com/microsoft/BotFramework-WebChat/pull/5464), by [@compulim](https://github.com/compulim), in PR [#5492](https://github.com/microsoft/BotFramework-WebChat/pull/5492), by [@OEvgeny](https://github.com/OEvgeny) - Attaching files will no longer remove previously attached files - Updated Fluent theme to use the new attachment preview feature -- Added collapsible activity and activity with abstract handling, in PR [#5506](https://github.com/microsoft/BotFramework-WebChat/pull/5506), in PR [#5513](https://github.com/microsoft/BotFramework-WebChat/pull/5513), by [@OEvgeny](https://github.com/OEvgeny) +- Added collapsible activity and activity with abstract handling, in PR [#5506](https://github.com/microsoft/BotFramework-WebChat/pull/5506), in PR [#5513](https://github.com/microsoft/BotFramework-WebChat/pull/5513), in PR [#5771](https://github.com/microsoft/BotFramework-WebChat/pull/5771), by [@OEvgeny](https://github.com/OEvgeny) + - Added `styleOptions.partGroupDefaultOpen` to configure whether part groups are open by default, defaults to `true` + - Added `styleOptions.referenceListDefaultOpen` to configure whether references are open by default, defaults to `true` + - In the Fluent theme "copilot" variant, part groups and references now default to closed - Added `disableFileUpload` flag to completelly disable file upload feature, in PR [#5508](https://github.com/microsoft/BotFramework-WebChat/pull/5508), by [@JamesNewbyAtMicrosoft](https://github.com/JamesNewbyAtMicrosoft) - Deprecated `hideUploadButton` in favor of `disableFileUpload`. - Updated `BasicSendBoxToolbar` to rely solely on `disableFileUpload`. diff --git a/__tests__/html2/activity/citation.longRef.copilot.html.snap-1.png b/__tests__/html2/activity/citation.longRef.copilot.html.snap-1.png index 43508b7a18..f38a6bb07d 100644 Binary files a/__tests__/html2/activity/citation.longRef.copilot.html.snap-1.png and b/__tests__/html2/activity/citation.longRef.copilot.html.snap-1.png differ diff --git a/__tests__/html2/activity/citation.longRef.copilot.html.snap-2.png b/__tests__/html2/activity/citation.longRef.copilot.html.snap-2.png new file mode 100644 index 0000000000..d3efedbb49 Binary files /dev/null and b/__tests__/html2/activity/citation.longRef.copilot.html.snap-2.png differ diff --git a/__tests__/html2/activity/citation.longRef.html b/__tests__/html2/activity/citation.longRef.html index 14bff48258..ac5a8632c3 100644 --- a/__tests__/html2/activity/citation.longRef.html +++ b/__tests__/html2/activity/citation.longRef.html @@ -15,7 +15,7 @@ run(async function () { const { directLine, store } = testHelpers.createDirectLineEmulator(); - renderWebChat( + const { isCopilotVariant } = renderWebChat( { directLine, store @@ -70,6 +70,14 @@ expect(markdownButtons[0].getAttribute('type')).toBe('button'); + // When (copilot): opening the link definitions + if (isCopilotVariant) { + await host.click(pageElements.linkDefinitions()[0].querySelector('summary')); + + // Then (copilot): the link definitions should be opened + await host.snapshot('local'); + } + const linkDefinitionItems = pageElements.linkDefinitions()[0].querySelectorAll('[role="listitem"] > *'); expect(linkDefinitionItems[0].getAttribute('href')).toBe( diff --git a/__tests__/html2/citation/accordion.copilot.html b/__tests__/html2/citation/accordion.copilot.html new file mode 100644 index 0000000000..3fb63e89a4 --- /dev/null +++ b/__tests__/html2/citation/accordion.copilot.html @@ -0,0 +1,10 @@ + + +
+