You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-09 08:42:50 +03:00
@@ -16,7 +16,7 @@ exports[`DecoratedRoomAvatar shows an avatar with globe icon and tooltip for pub
|
|||||||
r
|
r
|
||||||
</span>
|
</span>
|
||||||
<div
|
<div
|
||||||
aria-describedby="floating-ui-2"
|
aria-describedby=":r2:"
|
||||||
class="mx_DecoratedRoomAvatar_icon mx_DecoratedRoomAvatar_icon_globe"
|
class="mx_DecoratedRoomAvatar_icon mx_DecoratedRoomAvatar_icon_globe"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
/>
|
/>
|
||||||
@@ -40,7 +40,7 @@ exports[`DecoratedRoomAvatar shows the presence indicator in a DM room that also
|
|||||||
r
|
r
|
||||||
</span>
|
</span>
|
||||||
<div
|
<div
|
||||||
aria-describedby="floating-ui-8"
|
aria-describedby=":r8:"
|
||||||
class="mx_DecoratedRoomAvatar_icon mx_DecoratedRoomAvatar_icon_online"
|
class="mx_DecoratedRoomAvatar_icon mx_DecoratedRoomAvatar_icon_online"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
/>
|
/>
|
||||||
|
@@ -33,7 +33,7 @@ exports[`DevtoolsDialog renders the devtools dialog 1`] = `
|
|||||||
>
|
>
|
||||||
Room ID: !id
|
Room ID: !id
|
||||||
<div
|
<div
|
||||||
aria-describedby="floating-ui-2"
|
aria-describedby=":r2:"
|
||||||
aria-label="Copy"
|
aria-label="Copy"
|
||||||
class="mx_AccessibleButton mx_CopyableText_copyButton"
|
class="mx_AccessibleButton mx_CopyableText_copyButton"
|
||||||
role="button"
|
role="button"
|
||||||
|
@@ -73,7 +73,7 @@ exports[`LogoutDialog Prompts user to connect backup if there is a backup on the
|
|||||||
</details>
|
</details>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
aria-describedby="floating-ui-22"
|
aria-describedby=":r22:"
|
||||||
aria-label="Close dialog"
|
aria-label="Close dialog"
|
||||||
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
||||||
role="button"
|
role="button"
|
||||||
@@ -161,7 +161,7 @@ exports[`LogoutDialog Prompts user to set up backup if there is no backup on the
|
|||||||
</details>
|
</details>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
aria-describedby="floating-ui-28"
|
aria-describedby=":r28:"
|
||||||
aria-label="Close dialog"
|
aria-label="Close dialog"
|
||||||
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
||||||
role="button"
|
role="button"
|
||||||
|
@@ -102,7 +102,7 @@ exports[`<MessageEditHistory /> should match the snapshot 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
aria-describedby="floating-ui-2"
|
aria-describedby=":r2:"
|
||||||
aria-label="Close dialog"
|
aria-label="Close dialog"
|
||||||
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
||||||
role="button"
|
role="button"
|
||||||
@@ -316,7 +316,7 @@ exports[`<MessageEditHistory /> should support events with 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
aria-describedby="floating-ui-8"
|
aria-describedby=":r8:"
|
||||||
aria-label="Close dialog"
|
aria-label="Close dialog"
|
||||||
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
||||||
role="button"
|
role="button"
|
||||||
|
@@ -21,7 +21,7 @@ exports[`<ImageView /> renders correctly 1`] = `
|
|||||||
class="mx_ImageView_toolbar"
|
class="mx_ImageView_toolbar"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
aria-describedby="floating-ui-2"
|
aria-describedby=":r2:"
|
||||||
aria-label="Zoom out"
|
aria-label="Zoom out"
|
||||||
class="mx_AccessibleButton mx_ImageView_button mx_ImageView_button_zoomOut"
|
class="mx_AccessibleButton mx_ImageView_button mx_ImageView_button_zoomOut"
|
||||||
role="button"
|
role="button"
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
exports[`InfoTooltip should show tooltip on hover 1`] = `
|
exports[`InfoTooltip should show tooltip on hover 1`] = `
|
||||||
<DocumentFragment>
|
<DocumentFragment>
|
||||||
<div
|
<div
|
||||||
aria-describedby="floating-ui-2"
|
aria-describedby=":r2:"
|
||||||
class="mx_InfoTooltip"
|
class="mx_InfoTooltip"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
>
|
>
|
||||||
|
@@ -23,7 +23,6 @@ exports[`<LocationViewDialog /> renders map correctly 1`] = `
|
|||||||
class="mx_ZoomButtons"
|
class="mx_ZoomButtons"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
aria-describedby="floating-ui-6"
|
|
||||||
aria-label="Zoom in"
|
aria-label="Zoom in"
|
||||||
class="mx_AccessibleButton mx_ZoomButtons_button"
|
class="mx_AccessibleButton mx_ZoomButtons_button"
|
||||||
data-testid="map-zoom-in-button"
|
data-testid="map-zoom-in-button"
|
||||||
|
@@ -15,7 +15,7 @@ limitations under the License.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { fireEvent, render, RenderResult } from "@testing-library/react";
|
import { fireEvent, render, RenderResult, waitForElementToBeRemoved } from "@testing-library/react";
|
||||||
import {
|
import {
|
||||||
MatrixEvent,
|
MatrixEvent,
|
||||||
Relations,
|
Relations,
|
||||||
@@ -895,9 +895,11 @@ async function newMPollBody(
|
|||||||
content: newPollStart(answers, undefined, disclosed),
|
content: newPollStart(answers, undefined, disclosed),
|
||||||
});
|
});
|
||||||
const result = newMPollBodyFromEvent(mxEvent, relationEvents, endEvents);
|
const result = newMPollBodyFromEvent(mxEvent, relationEvents, endEvents);
|
||||||
// flush promises from loading relations
|
|
||||||
if (waitForResponsesLoad) {
|
if (waitForResponsesLoad) {
|
||||||
|
// flush promises from loading relations
|
||||||
await flushPromises();
|
await flushPromises();
|
||||||
|
const renderResult = await result;
|
||||||
|
await waitForElementToBeRemoved(() => renderResult.getByTestId("spinner"));
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
exports[`ReadReceiptGroup <ReadReceiptPerson /> should display a tooltip 1`] = `
|
exports[`ReadReceiptGroup <ReadReceiptPerson /> should display a tooltip 1`] = `
|
||||||
<div
|
<div
|
||||||
aria-describedby="floating-ui-5"
|
aria-describedby=":r5:"
|
||||||
aria-labelledby="floating-ui-4"
|
aria-labelledby=":r4:"
|
||||||
class="_tooltip_svz44_17"
|
class="_tooltip_svz44_17"
|
||||||
id="floating-ui-6"
|
id=":r6:"
|
||||||
role="tooltip"
|
role="tooltip"
|
||||||
style="position: absolute; left: 0px; top: 0px; transform: translate(0px, 0px);"
|
style="position: absolute; left: 0px; top: 0px; transform: translate(0px, 0px);"
|
||||||
tabindex="-1"
|
tabindex="-1"
|
||||||
@@ -23,7 +23,7 @@ exports[`ReadReceiptGroup <ReadReceiptPerson /> should display a tooltip 1`] = `
|
|||||||
stroke="none"
|
stroke="none"
|
||||||
/>
|
/>
|
||||||
<clippath
|
<clippath
|
||||||
id="floating-ui-9"
|
id=":r9:"
|
||||||
>
|
>
|
||||||
<rect
|
<rect
|
||||||
height="10"
|
height="10"
|
||||||
@@ -34,13 +34,13 @@ exports[`ReadReceiptGroup <ReadReceiptPerson /> should display a tooltip 1`] = `
|
|||||||
</clippath>
|
</clippath>
|
||||||
</svg>
|
</svg>
|
||||||
<span
|
<span
|
||||||
id="floating-ui-4"
|
id=":r4:"
|
||||||
>
|
>
|
||||||
Alice
|
Alice
|
||||||
</span>
|
</span>
|
||||||
<span
|
<span
|
||||||
class="_caption_svz44_29 cpd-theme-dark"
|
class="_caption_svz44_29 cpd-theme-dark"
|
||||||
id="floating-ui-5"
|
id=":r5:"
|
||||||
>
|
>
|
||||||
@alice:example.org
|
@alice:example.org
|
||||||
</span>
|
</span>
|
||||||
|
@@ -229,8 +229,8 @@ exports[`<SpacePanel /> should show all activated MetaSpaces in the correct orde
|
|||||||
class="mx_ThreadsActivityCentre_container"
|
class="mx_ThreadsActivityCentre_container"
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
aria-controls="floating-ui-39"
|
aria-controls=":r39:"
|
||||||
aria-describedby="floating-ui-39"
|
aria-describedby=":r39:"
|
||||||
aria-expanded="true"
|
aria-expanded="true"
|
||||||
aria-haspopup="dialog"
|
aria-haspopup="dialog"
|
||||||
aria-label="Threads"
|
aria-label="Threads"
|
||||||
|
@@ -432,8 +432,8 @@ exports[`ThreadsActivityCentre should render the release announcement 1`] = `
|
|||||||
class="mx_ThreadsActivityCentre_container"
|
class="mx_ThreadsActivityCentre_container"
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
aria-controls="floating-ui-6"
|
aria-controls=":r6:"
|
||||||
aria-describedby="floating-ui-6"
|
aria-describedby=":r6:"
|
||||||
aria-expanded="true"
|
aria-expanded="true"
|
||||||
aria-haspopup="dialog"
|
aria-haspopup="dialog"
|
||||||
aria-label="Threads"
|
aria-label="Threads"
|
||||||
@@ -459,7 +459,7 @@ exports[`ThreadsActivityCentre should render the release announcement 1`] = `
|
|||||||
tabindex="0"
|
tabindex="0"
|
||||||
/>
|
/>
|
||||||
<span
|
<span
|
||||||
aria-owns="floating-ui-12"
|
aria-owns=":r12:"
|
||||||
style="border: 0px; height: 1px; margin: -1px; overflow: hidden; padding: 0px; position: fixed; white-space: nowrap; width: 1px; top: 0px; left: 0px;"
|
style="border: 0px; height: 1px; margin: -1px; overflow: hidden; padding: 0px; position: fixed; white-space: nowrap; width: 1px; top: 0px; left: 0px;"
|
||||||
/>
|
/>
|
||||||
<span
|
<span
|
||||||
@@ -473,7 +473,7 @@ exports[`ThreadsActivityCentre should render the release announcement 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
data-floating-ui-portal=""
|
data-floating-ui-portal=""
|
||||||
id="floating-ui-12"
|
id=":r12:"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
data-floating-ui-focus-guard=""
|
data-floating-ui-focus-guard=""
|
||||||
@@ -484,10 +484,10 @@ exports[`ThreadsActivityCentre should render the release announcement 1`] = `
|
|||||||
tabindex="0"
|
tabindex="0"
|
||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
aria-describedby="floating-ui-5"
|
aria-describedby=":r5:"
|
||||||
aria-labelledby="floating-ui-4"
|
aria-labelledby=":r4:"
|
||||||
class="_content_1oa1y_17"
|
class="_content_1oa1y_17"
|
||||||
id="floating-ui-6"
|
id=":r6:"
|
||||||
role="dialog"
|
role="dialog"
|
||||||
style="position: absolute; left: 0px; top: 0px; transform: translate(0px, 0px);"
|
style="position: absolute; left: 0px; top: 0px; transform: translate(0px, 0px);"
|
||||||
tabindex="-1"
|
tabindex="-1"
|
||||||
@@ -505,7 +505,7 @@ exports[`ThreadsActivityCentre should render the release announcement 1`] = `
|
|||||||
stroke="none"
|
stroke="none"
|
||||||
/>
|
/>
|
||||||
<clippath
|
<clippath
|
||||||
id="floating-ui-13"
|
id=":r13:"
|
||||||
>
|
>
|
||||||
<rect
|
<rect
|
||||||
height="20"
|
height="20"
|
||||||
@@ -517,13 +517,13 @@ exports[`ThreadsActivityCentre should render the release announcement 1`] = `
|
|||||||
</svg>
|
</svg>
|
||||||
<h3
|
<h3
|
||||||
class="_typography_yh5dq_162 _font-body-lg-semibold_yh5dq_83 _header_1oa1y_46"
|
class="_typography_yh5dq_162 _font-body-lg-semibold_yh5dq_83 _header_1oa1y_46"
|
||||||
id="floating-ui-4"
|
id=":r4:"
|
||||||
>
|
>
|
||||||
Threads Activity Centre
|
Threads Activity Centre
|
||||||
</h3>
|
</h3>
|
||||||
<span
|
<span
|
||||||
class="_typography_yh5dq_162 _font-body-sm-regular_yh5dq_40 _description_1oa1y_52"
|
class="_typography_yh5dq_162 _font-body-sm-regular_yh5dq_40 _description_1oa1y_52"
|
||||||
id="floating-ui-5"
|
id=":r5:"
|
||||||
>
|
>
|
||||||
Threads notifications have moved, find them here from now on.
|
Threads notifications have moved, find them here from now on.
|
||||||
</span>
|
</span>
|
||||||
|
Reference in New Issue
Block a user