2023-02-08 00:12:39 +03:00
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`<MPollEndBody /> when poll start event does not exist in current timeline fetches the related poll start event and displays a poll tile 1`] = `
<div>
<div
class="mx_MPollEndBody_icon"
/>
</div>
`;
exports[`<MPollEndBody /> when poll start event exists in current timeline renders an ended poll 1`] = `
<div>
2023-02-22 13:53:12 +03:00
<div>
<span
class="mx_Caption"
2023-02-08 00:12:39 +03:00
>
2023-02-22 13:53:12 +03:00
Ended a poll
</span>
2023-02-08 00:12:39 +03:00
<div
2023-02-22 13:53:12 +03:00
class="mx_MPollBody"
2023-02-08 00:12:39 +03:00
>
2023-02-22 13:53:12 +03:00
<h2
data-testid="pollQuestion"
>
Question?
</h2>
2023-02-08 00:12:39 +03:00
<div
2023-02-22 13:53:12 +03:00
class="mx_MPollBody_allOptions"
2023-02-08 00:12:39 +03:00
>
<div
2023-02-22 13:53:12 +03:00
class="mx_PollOption mx_PollOption_ended"
data-testid="pollOption-socks"
2023-02-08 00:12:39 +03:00
>
<div
2023-02-22 13:53:12 +03:00
class="mx_PollOption_endedOption"
data-value="socks"
2023-02-08 00:12:39 +03:00
>
<div
2023-02-22 13:53:12 +03:00
class="mx_PollOption_content"
2023-02-08 00:12:39 +03:00
>
2023-02-22 13:53:12 +03:00
<div
class="mx_PollOption_optionText"
>
Socks
</div>
<div
class="mx_PollOption_optionVoteCount"
>
0 votes
</div>
2023-02-08 00:12:39 +03:00
</div>
</div>
<div
2023-02-22 13:53:12 +03:00
class="mx_PollOption_popularityBackground"
>
<div
class="mx_PollOption_popularityAmount"
style="width: 0%;"
/>
</div>
2023-02-08 00:12:39 +03:00
</div>
<div
2023-02-22 13:53:12 +03:00
class="mx_PollOption mx_PollOption_ended"
data-testid="pollOption-shoes"
2023-02-08 00:12:39 +03:00
>
<div
2023-02-22 13:53:12 +03:00
class="mx_PollOption_endedOption"
data-value="shoes"
2023-02-08 00:12:39 +03:00
>
<div
2023-02-22 13:53:12 +03:00
class="mx_PollOption_content"
2023-02-08 00:12:39 +03:00
>
2023-02-22 13:53:12 +03:00
<div
class="mx_PollOption_optionText"
>
Shoes
</div>
<div
class="mx_PollOption_optionVoteCount"
>
0 votes
</div>
2023-02-08 00:12:39 +03:00
</div>
2023-02-22 13:53:12 +03:00
</div>
<div
class="mx_PollOption_popularityBackground"
>
2023-02-08 00:12:39 +03:00
<div
2023-02-22 13:53:12 +03:00
class="mx_PollOption_popularityAmount"
style="width: 0%;"
/>
2023-02-08 00:12:39 +03:00
</div>
</div>
2023-02-22 13:53:12 +03:00
</div>
<div
class="mx_MPollBody_totalVotes"
data-testid="totalVotes"
>
Final result based on 0 votes
2023-02-08 00:12:39 +03:00
<div
2023-02-22 13:53:12 +03:00
class="mx_Spinner"
2023-02-08 00:12:39 +03:00
>
<div
2023-02-22 13:53:12 +03:00
aria-label="Loading…"
class="mx_Spinner_icon"
data-testid="spinner"
role="progressbar"
style="width: 16px; height: 16px;"
2023-02-08 00:12:39 +03:00
/>
</div>
</div>
</div>
</div>
</div>
`;