Skip to content

Add code block copy button #1172

Add code block copy button

Add code block copy button #1172

Triggered via pull request October 26, 2024 03:25
Status Failure
Total duration 12m 3s
Artifacts 3

pull-request-validation.yml

on: pull_request
Matrix: html-test
Merge test results
14s
Merge test results
Merge test snapshots
2s
Merge test snapshots
Fit to window
Zoom out
Zoom in

Annotations

33 errors
renderMarkdown › should render code correctly: packages/bundle/src/__tests__/renderMarkdown.spec.js#L60
expect(received).toBe(expected) // Object.is equality - Expected - 1 + Received + 1 @@ -1,6 +1,6 @@ - <pre class="webchat__render-markdown__code-block"><webchat__code-block-copy-button data-value="{ + <pre class="webchat__render-markdown__code-block"><webchat__code-block-copy-button class="undefined" data-alt-copied="undefined" data-alt-copy="undefined" data-value="{ &quot;hello&quot;: &quot;World!&quot; } "></webchat__code-block-copy-button><code>{ "hello": "World!" } at Object.toBe (packages/bundle/src/__tests__/renderMarkdown.spec.js:60:7)
Unit test
Process completed with exit code 1.
calling sendMessageBack should send a message back activity: __tests__/hooks/useSendMessageBack.js#L24
Expected image to match or be a close match to snapshot but was 0.06380208333333333% different from snapshot (147 differing pixels). See diff for details: /home/runner/work/BotFramework-WebChat/BotFramework-WebChat/__tests__/__image_snapshots__/chrome-docker/__diff_output__/use-send-message-back-js-calling-send-message-back-should-send-a-message-back-activity-1-snap-diff.png at toMatchImageSnapshot (__tests__/hooks/useSendMessageBack.js:24:21) at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16) at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17) at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21) at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:17) at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:17:9)
HTML test (9/17)
Process completed with exit code 1.
conversationStartProperties › with locale of en-US should get "Hello and welcome!" message.: packages/test/harness/src/host/common/host/snapshot.js#L15
Expected image to match or be a close match to snapshot but was 0.5186631944444444% different from snapshot (1195 differing pixels). See diff for details: /home/runner/work/BotFramework-WebChat/BotFramework-WebChat/__tests__/__image_snapshots__/html/__diff_output__/conversation-start-properties-send-en-us-js-conversation-start-properties-with-locale-of-en-us-should-get-hello-and-welcome-message-1-snap-diff.png at toMatchImageSnapshot (packages/test/harness/src/host/common/host/snapshot.js:15:24) at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16) at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17) at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21) at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:17) at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:17:9)
HTML test (17/17)
Process completed with exit code 1.
conversationStartProperties › with locale of zh-CN should get "Hello and welcome!" in Simplified Chinese.: packages/test/harness/src/host/common/host/snapshot.js#L15
Expected image to match or be a close match to snapshot but was 0.5212673611111112% different from snapshot (1201 differing pixels). See diff for details: /home/runner/work/BotFramework-WebChat/BotFramework-WebChat/__tests__/__image_snapshots__/html/__diff_output__/conversation-start-properties-send-zh-cn-js-conversation-start-properties-with-locale-of-zh-cn-should-get-hello-and-welcome-in-simplified-chinese-1-snap-diff.png at toMatchImageSnapshot (packages/test/harness/src/host/common/host/snapshot.js:15:24) at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16) at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17) at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21) at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:17) at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:17:9)
HTML test (2/17)
Process completed with exit code 1.
conversationStartProperties › with no locale is sent should get "Hello and welcome!" message.: packages/test/harness/src/host/common/host/snapshot.js#L15
Expected image to match or be a close match to snapshot but was 0.36848958333333337% different from snapshot (849 differing pixels). See diff for details: /home/runner/work/BotFramework-WebChat/BotFramework-WebChat/__tests__/__image_snapshots__/html/__diff_output__/conversation-start-properties-no-locale-is-sent-js-conversation-start-properties-with-no-locale-is-sent-should-get-hello-and-welcome-message-1-snap-diff.png at toMatchImageSnapshot (packages/test/harness/src/host/common/host/snapshot.js:15:24) at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16) at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17) at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21) at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:17) at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:17:9)
HTML test (13/17)
Process completed with exit code 1.
hero card actions › postBack (JSON): packages/test/harness/src/host/common/host/snapshot.js#L15
Expected image to match or be a close match to snapshot but was 0.06553819444444445% different from snapshot (151 differing pixels). See diff for details: /home/runner/work/BotFramework-WebChat/BotFramework-WebChat/__tests__/__image_snapshots__/html/__diff_output__/hero-card-actions-js-hero-card-actions-post-back-json-1-snap-diff.png at toMatchImageSnapshot (packages/test/harness/src/host/common/host/snapshot.js:15:24) at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16) at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17) at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21) at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:17) at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:17:9)
hero card actions › messageBack (displayText + text + value): packages/test/harness/src/host/common/host/snapshot.js#L15
Expected image to match or be a close match to snapshot but was 0.06553819444444445% different from snapshot (151 differing pixels). See diff for details: /home/runner/work/BotFramework-WebChat/BotFramework-WebChat/__tests__/__image_snapshots__/html/__diff_output__/hero-card-actions-js-hero-card-actions-message-back-display-text-text-value-1-snap-diff.png at toMatchImageSnapshot (packages/test/harness/src/host/common/host/snapshot.js:15:24) at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16) at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17) at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21) at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:17) at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:17:9)
hero card actions › messageBack (value): packages/test/harness/src/host/common/host/snapshot.js#L15
Expected image to match or be a close match to snapshot but was 0.06553819444444445% different from snapshot (151 differing pixels). See diff for details: /home/runner/work/BotFramework-WebChat/BotFramework-WebChat/__tests__/__image_snapshots__/html/__diff_output__/hero-card-actions-js-hero-card-actions-message-back-value-1-snap-diff.png at toMatchImageSnapshot (packages/test/harness/src/host/common/host/snapshot.js:15:24) at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16) at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17) at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21) at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:17) at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:17:9)
HTML test (16/17)
Process completed with exit code 1.
Auto-scroll with suggested actions shown › should stick to bottom if submitting an Adaptive Card: packages/test/harness/src/host/common/host/snapshot.js#L15
Expected image to match or be a close match to snapshot but was 0.07508680555555555% different from snapshot (173 differing pixels). See diff for details: /home/runner/work/BotFramework-WebChat/BotFramework-WebChat/__tests__/__image_snapshots__/html/__diff_output__/auto-scroll-with-suggested-actions-submit-adaptive-cards-js-auto-scroll-with-suggested-actions-shown-should-stick-to-bottom-if-submitting-an-adaptive-card-1-snap-diff.png at toMatchImageSnapshot (packages/test/harness/src/host/common/host/snapshot.js:15:24) at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16) at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17) at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21) at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:17) at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:17:9)
HTML test (8/17)
Process completed with exit code 1.
calling sendPostBack should send a post back activity: __tests__/hooks/useSendPostBack.js#L22
Expected image to match or be a close match to snapshot but was 0.06380208333333333% different from snapshot (147 differing pixels). See diff for details: /home/runner/work/BotFramework-WebChat/BotFramework-WebChat/__tests__/__image_snapshots__/chrome-docker/__diff_output__/use-send-post-back-js-calling-send-post-back-should-send-a-post-back-activity-1-snap-diff.png at toMatchImageSnapshot (__tests__/hooks/useSendPostBack.js:22:21) at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16) at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17) at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21) at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:17) at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:17:9)
HTML test (12/17)
Process completed with exit code 1.
should show response from bot and text from user on postback: __tests__/suggestedActions.js#L106
Expected image to match or be a close match to snapshot but was 0.06380208333333333% different from snapshot (147 differing pixels). See diff for details: /home/runner/work/BotFramework-WebChat/BotFramework-WebChat/__tests__/__image_snapshots__/chrome-docker/__diff_output__/suggested-actions-js-should-show-response-from-bot-and-text-from-user-on-postback-1-snap-diff.png at toMatchImageSnapshot (__tests__/suggestedActions.js:106:21) at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16) at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17) at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21) at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:17) at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:17:9)
should show response from bot and no text from user on messageback: __tests__/suggestedActions.js#L127
Expected image to match or be a close match to snapshot but was 0.06380208333333333% different from snapshot (147 differing pixels). See diff for details: /home/runner/work/BotFramework-WebChat/BotFramework-WebChat/__tests__/__image_snapshots__/chrome-docker/__diff_output__/suggested-actions-js-should-show-response-from-bot-and-no-text-from-user-on-messageback-1-snap-diff.png at toMatchImageSnapshot (__tests__/suggestedActions.js:127:21) at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16) at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17) at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21) at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:17) at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:17:9)
should show response from bot and text from user on messageback: __tests__/suggestedActions.js#L148
Expected image to match or be a close match to snapshot but was 0.06380208333333333% different from snapshot (147 differing pixels). See diff for details: /home/runner/work/BotFramework-WebChat/BotFramework-WebChat/__tests__/__image_snapshots__/chrome-docker/__diff_output__/suggested-actions-js-should-show-response-from-bot-and-text-from-user-on-messageback-1-snap-diff.png at toMatchImageSnapshot (__tests__/suggestedActions.js:148:21) at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16) at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17) at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21) at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:17) at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:17:9)
conversationStartProperties › with non-existing locale should get "Hello and welcome!" message.: packages/test/harness/src/host/common/host/snapshot.js#L15
Expected image to match or be a close match to snapshot but was 0.509982638888889% different from snapshot (1175 differing pixels). See diff for details: /home/runner/work/BotFramework-WebChat/BotFramework-WebChat/__tests__/__image_snapshots__/html/__diff_output__/conversation-start-properties-send-non-existing-js-conversation-start-properties-with-non-existing-locale-should-get-hello-and-welcome-message-1-snap-diff.png at toMatchImageSnapshot (packages/test/harness/src/host/common/host/snapshot.js:15:24) at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16) at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17) at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21) at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:17) at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:17:9)
accessibility requirement › disabling Adaptive Card with inputs field: packages/test/harness/src/host/common/host/snapshot.js#L15
Expected image to match or be a close match to snapshot but was 12.642795138888888% different from snapshot (29129 differing pixels). See diff for details: /home/runner/work/BotFramework-WebChat/BotFramework-WebChat/__tests__/__image_snapshots__/html/__diff_output__/accessibility-adaptive-card-disabled-inputs-js-accessibility-requirement-disabling-adaptive-card-with-inputs-field-3-snap-diff.png at toMatchImageSnapshot (packages/test/harness/src/host/common/host/snapshot.js:15:24) at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16) at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17) at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21) at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:17) at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:17:9)
HTML test (15/17)
Process completed with exit code 1.
Inputs card with custom style options and submit action: __tests__/adaptiveCards.js#L169
Expected image to match or be a close match to snapshot but was 0.07508680555555555% different from snapshot (173 differing pixels). See diff for details: /home/runner/work/BotFramework-WebChat/BotFramework-WebChat/__tests__/__image_snapshots__/chrome-docker/__diff_output__/adaptive-cards-js-inputs-card-with-custom-style-options-and-submit-action-1-snap-diff.png at toMatchImageSnapshot (__tests__/adaptiveCards.js:169:21) at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16) at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17) at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21) at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:17) at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:17:9)
conversationStartProperties › with locale of invalid type should get "Hello and welcome!" message.: packages/test/harness/src/host/common/host/snapshot.js#L15
Expected image to match or be a close match to snapshot but was 0.36848958333333337% different from snapshot (849 differing pixels). See diff for details: /home/runner/work/BotFramework-WebChat/BotFramework-WebChat/__tests__/__image_snapshots__/html/__diff_output__/conversation-start-properties-send-invalid-type-js-conversation-start-properties-with-locale-of-invalid-type-should-get-hello-and-welcome-message-1-snap-diff.png at toMatchImageSnapshot (packages/test/harness/src/host/common/host/snapshot.js:15:24) at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16) at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17) at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21) at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:17) at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:17:9)
scroll to end button › should have correct tab order: packages/test/harness/src/host/common/host/snapshot.js#L15
Expected image to match or be a close match to snapshot but was 0.004774305555555556% different from snapshot (11 differing pixels). See diff for details: /home/runner/work/BotFramework-WebChat/BotFramework-WebChat/__tests__/__image_snapshots__/html/__diff_output__/scroll-to-end-button-tab-order-js-scroll-to-end-button-should-have-correct-tab-order-1-snap-diff.png at toMatchImageSnapshot (packages/test/harness/src/host/common/host/snapshot.js:15:24) at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16) at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17) at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21) at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:17) at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:17:9)
HTML test (4/17)
Process completed with exit code 1.
transcript › with activity grouping test 43: packages/test/harness/src/host/common/host/snapshot.js#L15
Expected image to match or be a close match to snapshot but was 1.5056423611111112% different from snapshot (6938 differing pixels). See diff for details: /home/runner/work/BotFramework-WebChat/BotFramework-WebChat/__tests__/__image_snapshots__/html/__diff_output__/transcript-activity-grouping-js-transcript-with-activity-grouping-test-43-1-snap-diff.png at toMatchImageSnapshot (packages/test/harness/src/host/common/host/snapshot.js:15:24) at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16) at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17) at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21) at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:17) at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:17:9)
transcript › with activity grouping test 44: packages/test/harness/src/host/common/host/snapshot.js#L15
Expected image to match or be a close match to snapshot but was 0.09342447916666667% different from snapshot (861 differing pixels). See diff for details: /home/runner/work/BotFramework-WebChat/BotFramework-WebChat/__tests__/__image_snapshots__/html/__diff_output__/transcript-activity-grouping-js-transcript-with-activity-grouping-test-44-1-snap-diff.png at toMatchImageSnapshot (packages/test/harness/src/host/common/host/snapshot.js:15:24) at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16) at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17) at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21) at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:17) at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:17:9)
transcript › with activity grouping test 46: packages/test/harness/src/host/common/host/snapshot.js#L15
Expected image to match or be a close match to snapshot but was 0.09342447916666667% different from snapshot (861 differing pixels). See diff for details: /home/runner/work/BotFramework-WebChat/BotFramework-WebChat/__tests__/__image_snapshots__/html/__diff_output__/transcript-activity-grouping-js-transcript-with-activity-grouping-test-46-1-snap-diff.png at toMatchImageSnapshot (packages/test/harness/src/host/common/host/snapshot.js:15:24) at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16) at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17) at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21) at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:17) at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:17:9)
conversationStartProperties › with non ISO format locale should get "Hello and welcome!" message.: packages/test/harness/src/host/common/host/snapshot.js#L15
Expected image to match or be a close match to snapshot but was 0.5221354166666666% different from snapshot (1203 differing pixels). See diff for details: /home/runner/work/BotFramework-WebChat/BotFramework-WebChat/__tests__/__image_snapshots__/html/__diff_output__/conversation-start-properties-send-non-iso-format-js-conversation-start-properties-with-non-iso-format-locale-should-get-hello-and-welcome-message-1-snap-diff.png at toMatchImageSnapshot (packages/test/harness/src/host/common/host/snapshot.js:15:24) at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16) at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17) at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21) at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:17) at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:17:9)
HTML test (5/17)
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size
docker Expired
106 MB
test-result
1.29 MB
test-snapshot-diff
3.15 MB