Fix text missing after HTML tags #1082
pull-request-validation.yml
on: pull_request
Build
3m 47s
Unit test
4m 31s
Build samples
30s
Static code analysis
5m 11s
Type definitions test
4m 11s
Matrix: html-test
Merge test results
13s
Merge test snapshots
2s
Annotations
29 errors and 6 warnings
When passing "asButton" option with true › should match snapshot:
packages/bundle/src/markdown/private/betterLinkDocumentMod.asButton.spec.ts#L26
expect(received).toBe(expected) // Object.is equality
- Expected - 0
+ Received + 2
<p xmlns="http://www.w3.org/1999/xhtml"><button type="button" value="https://example.com">Example</button></p>
+
+
at Object.toBe (packages/bundle/src/markdown/private/betterLinkDocumentMod.asButton.spec.ts:26:57)
|
When passing "asButton" option with true and "iconClassName" with "my-icon" › should match snapshot:
packages/bundle/src/markdown/private/betterLinkDocumentMod.asButton.spec.ts#L50
expect(received).toBe(expected) // Object.is equality
- Expected - 0
+ Received + 2
<p xmlns="http://www.w3.org/1999/xhtml"><button type="button" value="https://example.com">Example<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt="" class="my-icon" /></button></p>
+
+
at Object.toBe (packages/bundle/src/markdown/private/betterLinkDocumentMod.asButton.spec.ts:50:57)
|
When passing "asButton" option with true and "title" with "Hello:
packages/bundle/src/markdown/private/betterLinkDocumentMod.asButton.spec.ts#L76
expect(received).toBe(expected) // Object.is equality
- Expected - 0
+ Received + 2
<p xmlns="http://www.w3.org/1999/xhtml"><button title="Hello, World!" type="button" value="https://example.com">Example</button></p>
+
+
at Object.toBe (packages/bundle/src/markdown/private/betterLinkDocumentMod.asButton.spec.ts:76:57)
|
When passing "asButton" option with true and "className" with "my-link" › should match snapshot:
packages/bundle/src/markdown/private/betterLinkDocumentMod.asButton.spec.ts#L102
expect(received).toBe(expected) // Object.is equality
- Expected - 0
+ Received + 2
<p xmlns="http://www.w3.org/1999/xhtml"><button class="my-link" type="button" value="https://example.com">Example</button></p>
+
+
at Object.toBe (packages/bundle/src/markdown/private/betterLinkDocumentMod.asButton.spec.ts:102:57)
|
When passing "asButton" option with true and "aria-label" with "Hello:
packages/bundle/src/markdown/private/betterLinkDocumentMod.asButton.spec.ts#L128
expect(received).toBe(expected) // Object.is equality
- Expected - 0
+ Received + 2
<p xmlns="http://www.w3.org/1999/xhtml"><button aria-label="Hello, World!" type="button" value="https://example.com">Example</button></p>
+
+
at Object.toBe (packages/bundle/src/markdown/private/betterLinkDocumentMod.asButton.spec.ts:128:57)
|
renderMarkdown › should properly render newline characters to markdown:
packages/bundle/src/__tests__/renderMarkdown.spec.js#L16
expect(received).toBe(expected) // Object.is equality
- Expected - 0
+ Received + 2
<p>Same line.
Same line.<br />
2nd line.</p>
+
+
at Object.toBe (packages/bundle/src/__tests__/renderMarkdown.spec.js:16:81)
|
renderMarkdown › should respect CRLF:
packages/bundle/src/__tests__/renderMarkdown.spec.js#L24
expect(received).toBe(expected) // Object.is equality
- Expected - 0
+ Received + 4
<p>Same Line.
Same Line.</p>
+
+
<p>2nd line.</p>
+
+
at Object.toBe (packages/bundle/src/__tests__/renderMarkdown.spec.js:24:83)
|
renderMarkdown › should respect LFCR:
packages/bundle/src/__tests__/renderMarkdown.spec.js#L32
expect(received).toBe(expected) // Object.is equality
- Expected - 0
+ Received + 4
<p>Same Line.
Same Line.</p>
+
+
<p>2nd line.</p>
+
+
at Object.toBe (packages/bundle/src/__tests__/renderMarkdown.spec.js:32:83)
|
renderMarkdown › should render bold text:
packages/bundle/src/__tests__/renderMarkdown.spec.js#L40
expect(received).toBe(expected) // Object.is equality
- Expected - 0
+ Received + 4
<p><strong>Message with Markdown</strong></p>
+
+
<p>Should see bold text.</p>
+
+
at Object.toBe (packages/bundle/src/__tests__/renderMarkdown.spec.js:40:96)
|
renderMarkdown › should render code correctly:
packages/bundle/src/__tests__/renderMarkdown.spec.js#L48
expect(received).toBe(expected) // Object.is equality
- Expected - 0
+ Received + 2
<pre><code>{
"hello": "World!"
}
</code></pre>
+
+
at Object.toBe (packages/bundle/src/__tests__/renderMarkdown.spec.js:48:109)
|
markdownRenderHTML when unset › should render sanitized HTML in citation modal:
undefined#L1
UnexpectedAlertOpenError: unexpected alert open: {Alert text : 1}
(Session info: headless chrome=110.0.5481.177)
at Object.throwDecodedError (node_modules/selenium-webdriver/lib/error.js:521:15)
at parseHttpResponse (node_modules/selenium-webdriver/lib/http.js:514:13)
at Executor.execute (node_modules/selenium-webdriver/lib/http.js:446:28)
at Driver.execute (node_modules/selenium-webdriver/lib/webdriver.js:744:17)
|
markdownRenderHTML when unset › should render sanitized HTML in citation modal:
__tests__/html/markdownRenderHTML/default.citationModal.js#L4
thrown: "Exceeded timeout of 50000 ms for a test.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."
at __tests__/html/markdownRenderHTML/default.citationModal.js:4:3
at Object.<anonymous> (__tests__/html/markdownRenderHTML/default.citationModal.js:3:1)
|
HTML test (17/17)
Process completed with exit code 1.
|
renderMarkdown should use Markdown-It if not set in props:
__tests__/hooks/useRenderMarkdownAsHTML.js#L18
expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 4
- <div xmlns="http://www.w3.org/1999/xhtml" class="webchat__render-markdown webchat__render-markdown--message-activity webchat--css-xxxxx-xxxxx"><p>Hello, World!</p></div>
+ <div xmlns="http://www.w3.org/1999/xhtml" class="webchat__render-markdown webchat__render-markdown--message-activity webchat--css-xxxxx-xxxxx"><p>Hello, World!</p>
+
+
+ </div>
↵
at toBe (__tests__/hooks/useRenderMarkdownAsHTML.js:18:5)
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)
|
renderMarkdown should add accessibility text for external links:
__tests__/hooks/useRenderMarkdownAsHTML.js#L59
expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 4
- <div xmlns="http://www.w3.org/1999/xhtml" class="webchat__render-markdown webchat__render-markdown--message-activity webchat--css-xxxxx-xxxxx"><p>Click <a href="https://aka.ms/" aria-label="here Opens in a new window; external." rel="noopener noreferrer" target="_blank">here<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt="" class="webchat__render-markdown__external-link-icon" title="Opens in a new window; external." /></a> to find out more.</p></div>
+ <div xmlns="http://www.w3.org/1999/xhtml" class="webchat__render-markdown webchat__render-markdown--message-activity webchat--css-xxxxx-xxxxx"><p>Click <a href="https://aka.ms/" aria-label="here Opens in a new window; external." rel="noopener noreferrer" target="_blank">here<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt="" class="webchat__render-markdown__external-link-icon" title="Opens in a new window; external." /></a> to find out more.</p>
+
+
+ </div>
↵
at toBe (__tests__/hooks/useRenderMarkdownAsHTML.js:59:5)
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)
|
renderMarkdown should add accessibility text for external links with yue:
__tests__/hooks/useRenderMarkdownAsHTML.js#L73
expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 4
- <div xmlns="http://www.w3.org/1999/xhtml" class="webchat__render-markdown webchat__render-markdown--message-activity webchat--css-xxxxx-xxxxx"><p>Click <a href="https://aka.ms/" aria-label="here 喺新嘅視窗開啟外部連結。" rel="noopener noreferrer" target="_blank">here<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt="" class="webchat__render-markdown__external-link-icon" title="喺新嘅視窗開啟外部連結。" /></a> to find out more.</p></div>
+ <div xmlns="http://www.w3.org/1999/xhtml" class="webchat__render-markdown webchat__render-markdown--message-activity webchat--css-xxxxx-xxxxx"><p>Click <a href="https://aka.ms/" aria-label="here 喺新嘅視窗開啟外部連結。" rel="noopener noreferrer" target="_blank">here<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt="" class="webchat__render-markdown__external-link-icon" title="喺新嘅視窗開啟外部連結。" /></a> to find out more.</p>
+
+
+ </div>
↵
at toBe (__tests__/hooks/useRenderMarkdownAsHTML.js:73:5)
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.
|
markdownRenderHTML when unset › should render sanitized HTML in message activity:
undefined#L1
UnexpectedAlertOpenError: unexpected alert open: {Alert text : 1}
(Session info: headless chrome=110.0.5481.177)
at Object.throwDecodedError (node_modules/selenium-webdriver/lib/error.js:521:15)
at parseHttpResponse (node_modules/selenium-webdriver/lib/http.js:514:13)
at Executor.execute (node_modules/selenium-webdriver/lib/http.js:446:28)
at Driver.execute (node_modules/selenium-webdriver/lib/webdriver.js:744:17)
|
markdownRenderHTML when unset › should render sanitized HTML in message activity:
__tests__/html/markdownRenderHTML/default.messageActivity.js#L4
thrown: "Exceeded timeout of 50000 ms for a test.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."
at __tests__/html/markdownRenderHTML/default.messageActivity.js:4:3
at Object.<anonymous> (__tests__/html/markdownRenderHTML/default.messageActivity.js:3:1)
|
markdownRenderHTML when set to false › should not render HTML in citation modal:
https://webchat2/__tests__/html/markdownRenderHTML/false.citationModal#L100
expect(received).toBe(expected) // Object.is equality
Expected: true
Received: false
at https:/webchat2/__tests__/html/markdownRenderHTML/false.citationModal:100:86
|
HTML test (9/17)
Process completed with exit code 1.
|
markdownRenderHTML when set to false › should not render HTML in message activity:
https://webchat2/__tests__/html/markdownRenderHTML/false.messageActivity#L35
expect(received).toBe(expected) // Object.is equality
Expected: true
Received: false
at https:/webchat2/__tests__/html/markdownRenderHTML/false.messageActivity:35:86
|
HTML test (10/17)
Process completed with exit code 1.
|
markdownRenderHTML when unset › should render sanitized HTML in Adaptive Cards:
undefined#L1
UnexpectedAlertOpenError: unexpected alert open: {Alert text : 1}
(Session info: headless chrome=110.0.5481.177)
at Object.throwDecodedError (node_modules/selenium-webdriver/lib/error.js:521:15)
at parseHttpResponse (node_modules/selenium-webdriver/lib/http.js:514:13)
at Executor.execute (node_modules/selenium-webdriver/lib/http.js:446:28)
at Driver.execute (node_modules/selenium-webdriver/lib/webdriver.js:744:17)
|
markdownRenderHTML when unset › should render sanitized HTML in Adaptive Cards:
__tests__/html/markdownRenderHTML/default.adaptiveCards.js#L4
thrown: "Exceeded timeout of 50000 ms for a test.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."
at __tests__/html/markdownRenderHTML/default.adaptiveCards.js:4:3
at Object.<anonymous> (__tests__/html/markdownRenderHTML/default.adaptiveCards.js:3:1)
|
HTML test (11/17)
Process completed with exit code 1.
|
markdownRenderHTML when set to false › should not render HTML in Adaptive Cards:
https://webchat2/__tests__/html/markdownRenderHTML/false.adaptiveCards#L62
expect(received).toBe(expected) // Object.is equality
Expected: true
Received: false
at https:/webchat2/__tests__/html/markdownRenderHTML/false.adaptiveCards:62:86
|
HTML test (12/17)
Process completed with exit code 1.
|
Merge test snapshots
No artifacts found matching pattern 'test-snapshot-diff-*'
|
HTML test (17/17)
No files were found with the provided path: ./__tests__/__image_snapshots__/*/__diff_output__/*. No artifacts will be uploaded.
|
HTML test (2/17)
No files were found with the provided path: ./__tests__/__image_snapshots__/*/__diff_output__/*. No artifacts will be uploaded.
|
HTML test (9/17)
No files were found with the provided path: ./__tests__/__image_snapshots__/*/__diff_output__/*. No artifacts will be uploaded.
|
HTML test (10/17)
No files were found with the provided path: ./__tests__/__image_snapshots__/*/__diff_output__/*. No artifacts will be uploaded.
|
HTML test (11/17)
No files were found with the provided path: ./__tests__/__image_snapshots__/*/__diff_output__/*. No artifacts will be uploaded.
|
HTML test (12/17)
No files were found with the provided path: ./__tests__/__image_snapshots__/*/__diff_output__/*. No artifacts will be uploaded.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
docker
Expired
|
101 MB |
|
test-result
|
1.29 MB |
|