2023-02-07 21:12:39 +00: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>
<div
class="mx_MPollBody"
>
<h2
data-testid="pollQuestion"
>
Question?
</h2>
<div
class="mx_MPollBody_allOptions"
>
<div
2023-02-13 02:55:39 +00:00
class="mx_PollOption mx_PollOption_ended"
2023-02-07 21:12:39 +00:00
data-testid="pollOption-socks"
>
<div
2023-02-13 02:55:39 +00:00
class="mx_PollOption_endedOption"
2023-02-07 21:12:39 +00:00
data-value="socks"
>
<div
2023-02-13 02:55:39 +00:00
class="mx_PollOption_content"
2023-02-07 21:12:39 +00:00
>
<div
2023-02-13 02:55:39 +00:00
class="mx_PollOption_optionText"
2023-02-07 21:12:39 +00:00
>
Socks
</div>
<div
2023-02-13 02:55:39 +00:00
class="mx_PollOption_optionVoteCount"
2023-02-07 21:12:39 +00:00
>
0 votes
</div>
</div>
</div>
<div
2023-02-13 02:55:39 +00:00
class="mx_PollOption_popularityBackground"
2023-02-07 21:12:39 +00:00
>
<div
2023-02-13 02:55:39 +00:00
class="mx_PollOption_popularityAmount"
2023-02-07 21:12:39 +00:00
style="width: 0%;"
/>
</div>
</div>
<div
2023-02-13 02:55:39 +00:00
class="mx_PollOption mx_PollOption_ended"
2023-02-07 21:12:39 +00:00
data-testid="pollOption-shoes"
>
<div
2023-02-13 02:55:39 +00:00
class="mx_PollOption_endedOption"
2023-02-07 21:12:39 +00:00
data-value="shoes"
>
<div
2023-02-13 02:55:39 +00:00
class="mx_PollOption_content"
2023-02-07 21:12:39 +00:00
>
<div
2023-02-13 02:55:39 +00:00
class="mx_PollOption_optionText"
2023-02-07 21:12:39 +00:00
>
Shoes
</div>
<div
2023-02-13 02:55:39 +00:00
class="mx_PollOption_optionVoteCount"
2023-02-07 21:12:39 +00:00
>
0 votes
</div>
</div>
</div>
<div
2023-02-13 02:55:39 +00:00
class="mx_PollOption_popularityBackground"
2023-02-07 21:12:39 +00:00
>
<div
2023-02-13 02:55:39 +00:00
class="mx_PollOption_popularityAmount"
2023-02-07 21:12:39 +00:00
style="width: 0%;"
/>
</div>
</div>
</div>
<div
class="mx_MPollBody_totalVotes"
data-testid="totalVotes"
>
Final result based on 0 votes
<div
class="mx_Spinner"
>
<div
2023-02-14 09:05:01 +00:00
aria-label="Loading…"
2023-02-07 21:12:39 +00:00
class="mx_Spinner_icon"
data-testid="spinner"
role="progressbar"
style="width: 16px; height: 16px;"
/>
</div>
</div>
</div>
</div>
`;