Update to React 18 #155
Annotations
4 errors
Run tests:
test/unit-tests/components/views/rooms/RoomHeader-test.tsx#L633
expect(received).toMatchSnapshot()
Snapshot name: `RoomHeader dm does not show the face pile for DMs 1`
- Snapshot - 4
+ Received + 4
@@ -42,11 +42,11 @@
<div
class="mx_Flex"
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: start; --mx-flex-gap: var(--cpd-space-2x);"
>
<button
- aria-labelledby=":r158:"
+ aria-labelledby=":r154:"
class="_icon-button_bh2qc_17"
role="button"
style="--cpd-icon-button-size: 32px;"
tabindex="0"
>
@@ -68,11 +68,11 @@
</div>
</button>
<button
aria-disabled="true"
aria-label="There's no one here to call"
- aria-labelledby=":r15d:"
+ aria-labelledby=":r159:"
class="_icon-button_bh2qc_17"
role="button"
style="--cpd-icon-button-size: 32px;"
tabindex="0"
>
@@ -93,11 +93,11 @@
</svg>
</div>
</button>
<button
aria-label="Room info"
- aria-labelledby=":r15i:"
+ aria-labelledby=":r15e:"
class="_icon-button_bh2qc_17"
role="button"
style="--cpd-icon-button-size: 32px;"
tabindex="0"
>
@@ -118,11 +118,11 @@
</svg>
</div>
</button>
<button
aria-label="Threads"
- aria-labelledby=":r15n:"
+ aria-labelledby=":r15j:"
class="_icon-button_bh2qc_17"
role="button"
style="--cpd-icon-button-size: 32px;"
tabindex="0"
>
at Object.toMatchSnapshot (test/unit-tests/components/views/rooms/RoomHeader-test.tsx:633:34)
|
Run tests:
test/unit-tests/components/views/polls/pollHistory/PollListItemEnded-test.tsx#L146
TestingLibraryElementError: Unable to find an element with the text: Final result based on 2 votes. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body>
<div>
<li
class="mx_PollListItemEnded"
data-testid="pollListItem-1"
>
<span
tabindex="0"
>
<div
aria-labelledby=":ro:"
class="mx_PollListItemEnded_content"
>
<div
class="mx_PollListItemEnded_title"
>
<div
class="mx_PollListItemEnded_icon"
/>
<span
class="mx_PollListItemEnded_question"
>
Question?
</span>
<span
class="mx_Caption"
>
02/02/23
</span>
</div>
<div
class="mx_PollListItemEnded_voteCount"
>
<span
class="mx_Caption"
>
Final result based on 0 votes
</span>
</div>
</div>
</span>
</li>
</div>
<div
data-floating-ui-portal=""
id=":rs:"
>
<div
class="_tooltip_1pslb_17 _invisible_1pslb_30"
data-floating-ui-focusable=""
style="position: absolute; left: 0px; top: 0px; transform: translate(5px, -6px);"
tabindex="-1"
>
<svg
aria-hidden="true"
class="_arrow_1pslb_42"
height="10"
style="position: absolute; pointer-events: none; top: 100%; left: -1px;"
viewBox="0 0 10 10"
width="10"
>
<path
d="M0,0 H10 L5,6 Q5,6 5,6 Z"
stroke="none"
/>
<clippath
id=":rt:"
>
<rect
height="10"
width="10"
x="0"
y="0"
/>
</clippath>
</svg>
<span
id=":ro:"
>
View poll
</span>
</div>
</div>
</body>
at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
at Object.getByText (test/unit-tests/components/views/polls/pollHistory/PollListItemEnded-test.tsx:146:16)
|
Run tests:
test/unit-tests/components/views/polls/pollHistory/PollListItemEnded-test.tsx#L161
TestingLibraryElementError: Unable to find an element with the text: Final result based on 2 votes. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body>
<div>
<li
class="mx_PollListItemEnded"
data-testid="pollListItem-1"
>
<span
tabindex="0"
>
<div
aria-labelledby=":ru:"
class="mx_PollListItemEnded_content"
>
<div
class="mx_PollListItemEnded_title"
>
<div
class="mx_PollListItemEnded_icon"
/>
<span
class="mx_PollListItemEnded_question"
>
Question?
</span>
<span
class="mx_Caption"
>
02/02/23
</span>
</div>
<div
class="mx_PollListItemEnded_voteCount"
>
<span
class="mx_Caption"
>
Final result based on 0 votes
</span>
</div>
</div>
</span>
</li>
</div>
<div
data-floating-ui-portal=""
id=":r12:"
>
<div
class="_tooltip_1pslb_17 _invisible_1pslb_30"
data-floating-ui-focusable=""
style="position: absolute; left: 0px; top: 0px; transform: translate(5px, -6px);"
tabindex="-1"
>
<svg
aria-hidden="true"
class="_arrow_1pslb_42"
height="10"
style="position: absolute; pointer-events: none; top: 100%; left: -1px;"
viewBox="0 0 10 10"
width="10"
>
<path
d="M0,0 H10 L5,6 Q5,6 5,6 Z"
stroke="none"
/>
<clippath
id=":r13:"
>
<rect
height="10"
width="10"
x="0"
y="0"
/>
</clippath>
</svg>
<span
id=":ru:"
>
View poll
</span>
</div>
</div>
</body>
at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
at Object.getByText (test/unit-tests/components/views/polls/pollHistory/PollListItemEnded-test.tsx:161:16)
|
Run tests
Process completed with exit code 1.
|
Loading