Fix text missing after HTML tags #1080
pull-request-validation.yml
on: pull_request
Build
3m 45s
Unit test
4m 37s
Build samples
30s
Static code analysis
5m 4s
Type definitions test
4m 20s
Matrix: html-test
Merge test results
13s
Merge test snapshots
3s
Annotations
37 errors and 10 warnings
When passing "asButton" option with true › should match snapshot:
packages/bundle/src/markdown/private/betterLinkDocumentMod.asButton.spec.ts#L23
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:23:49)
|
When passing "asButton" option with true and "iconClassName" with "my-icon" › should match snapshot:
packages/bundle/src/markdown/private/betterLinkDocumentMod.asButton.spec.ts#L47
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:47:49)
|
When passing "asButton" option with true and "title" with "Hello:
packages/bundle/src/markdown/private/betterLinkDocumentMod.asButton.spec.ts#L73
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:73:49)
|
When passing "asButton" option with true and "className" with "my-link" › should match snapshot:
packages/bundle/src/markdown/private/betterLinkDocumentMod.asButton.spec.ts#L99
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:99:49)
|
When passing "asButton" option with true and "aria-label" with "Hello:
packages/bundle/src/markdown/private/betterLinkDocumentMod.asButton.spec.ts#L125
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:125:49)
|
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 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
|
bot typing message in out-of-order fashion › should sort typing activity in its original order:
<anonymous>#L81
expect(received).toHaveProperty(path, value)
Expected path: "textContent"
- Expected value - 0
+ Received value + 3
Adipisicing cupidatat eu Lorem anim ut aute magna occaecat id cillum.
+
+
+
at _callee$ (<anonymous>:81:52)
at tryCatch (<anonymous>:4:1062)
at Generator.<anonymous> (<anonymous>:4:3008)
at Generator.next (<anonymous>:4:1699)
at asyncGeneratorStep (<anonymous>:11:70)
at _next (<anonymous>:12:163)
|
HTML test (9/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.
|
bot reusing concluded livestream session ID › should be ignored:
<anonymous>#L73
expect(received).toHaveProperty(path, value)
Expected path: "textContent"
- Expected value - 0
+ Received value + 3
A quick
+
+
+
at _callee$ (<anonymous>:73:52)
at tryCatch (<anonymous>:4:1062)
at Generator.<anonymous> (<anonymous>:4:3008)
at Generator.next (<anonymous>:4:1699)
at asyncGeneratorStep (<anonymous>:11:70)
at _next (<anonymous>:12:163)
|
informative typing message › should be shown as typing indicator:
https://webchat2/__tests__/html/typing/informative#L59
expect(received).toHaveProperty(path, value)
Expected path: "textContent"
- Expected value - 0
+ Received value + 3
Adipisicing cupidatat eu Lorem anim ut aute magna occaecat id cillum.
+
+
+
at https:/webchat2/__tests__/html/typing/informative:59:52
|
HTML test (11/17)
Process completed with exit code 1.
|
bot typing message in out-of-order fashion › should sort typing activity based on channelData.sequenceNumber:
<anonymous>#L81
expect(received).toHaveProperty(path, value)
Expected path: "textContent"
- Expected value - 0
+ Received value + 3
Adipisicing cupidatat eu Lorem anim ut aute magna occaecat id cillum.
+
+
+
at _callee$ (<anonymous>:81:52)
at tryCatch (<anonymous>:4:1062)
at Generator.<anonymous> (<anonymous>:4:3008)
at Generator.next (<anonymous>:4:1699)
at asyncGeneratorStep (<anonymous>:11:70)
at _next (<anonymous>:12:163)
|
HTML test (16/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
|
bot typing with chunks › should display partial message:
<anonymous>#L74
expect(received).toHaveProperty(path, value)
Expected path: "textContent"
- Expected value - 0
+ Received value + 3
Adipisicing cupidatat eu Lorem anim ut aute magna occaecat id cillum.
+
+
+
at _callee$ (<anonymous>:74:52)
at tryCatch (<anonymous>:4:1062)
at Generator.<anonymous> (<anonymous>:4:3008)
at Generator.next (<anonymous>:4:1699)
at asyncGeneratorStep (<anonymous>:11:70)
at _next (<anonymous>:12:163)
|
HTML test (10/17)
Process completed with exit code 1.
|
Livestreaming › should layout properly:
https://webchat2/test-page-object.js#L73211
Timed out while waiting for page condition "informative message show up" after 1 seconds.
at Object.became (https:/webchat2/test-page-object.js:73211:11)
|
HTML test (13/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
|
bot sending multiple messages › should sort typing activity in its original order:
<anonymous>#L74
expect(received).toHaveProperty(path, value)
Expected path: "textContent"
- Expected value - 0
+ Received value + 3
Adipisicing cupidatat eu Lorem anim ut aute magna occaecat id cillum.
+
+
+
at _callee$ (<anonymous>:74:52)
at tryCatch (<anonymous>:4:1062)
at Generator.<anonymous> (<anonymous>:4:3008)
at Generator.next (<anonymous>:4:1699)
at asyncGeneratorStep (<anonymous>:11:70)
at _next (<anonymous>:12:163)
|
HTML test (12/17)
Process completed with exit code 1.
|
bot typing multiple messages › should work properly:
<anonymous>#L73
expect(received).toHaveProperty(path, value)
Expected path: "textContent"
- Expected value - 0
+ Received value + 3
Adipisicing cupidatat eu Lorem anim ut aute magna occaecat id cillum.
+
+
+
at _callee$ (<anonymous>:73:52)
at tryCatch (<anonymous>:4:1062)
at Generator.<anonymous> (<anonymous>:4:3008)
at Generator.next (<anonymous>:4:1699)
at asyncGeneratorStep (<anonymous>:11:70)
at _next (<anonymous>:12:163)
|
HTML test (7/17)
Process completed with exit code 1.
|
accessibility hacks for Adaptive Cards › when rerendered should persist values:
https://webchat2/__tests__/html/accessibility.adaptiveCard.hack.persistValuesMod#L48
expect(received).toHaveProperty(path, value)
Expected path: "textContent"
- Expected value - 0
+ Received value + 3
Hello, World!
+
+
+
at https:/webchat2/__tests__/html/accessibility.adaptiveCard.hack.persistValuesMod:48:52
|
HTML test (4/17)
Process completed with exit code 1.
|
accessibility hacks for Adaptive Cards › when rerendered should persist focused element:
https://webchat2/__tests__/html/accessibility.adaptiveCard.hack.activeElementMod#L38
expect(received).toHaveProperty(path, value)
Expected path: "textContent"
- Expected value - 0
+ Received value + 3
Hello, World!
+
+
+
at https:/webchat2/__tests__/html/accessibility.adaptiveCard.hack.activeElementMod:38:52
|
HTML test (3/17)
Process completed with exit code 1.
|
Merge test snapshots
No artifacts found matching pattern 'test-snapshot-diff-*'
|
HTML test (9/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 (11/17)
No files were found with the provided path: ./__tests__/__image_snapshots__/*/__diff_output__/*. No artifacts will be uploaded.
|
HTML test (16/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 (13/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.
|
HTML test (7/17)
No files were found with the provided path: ./__tests__/__image_snapshots__/*/__diff_output__/*. No artifacts will be uploaded.
|
HTML test (4/17)
No files were found with the provided path: ./__tests__/__image_snapshots__/*/__diff_output__/*. No artifacts will be uploaded.
|
HTML test (3/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 |
|