2023-02-08 05:12:39 +08: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 10:55:39 +08:00
class="mx_PollOption mx_PollOption_ended"
2023-02-08 05:12:39 +08:00
data-testid="pollOption-socks"
>
<div
2023-02-13 10:55:39 +08:00
class="mx_PollOption_endedOption"
2023-02-08 05:12:39 +08:00
data-value="socks"
>
<div
2023-02-13 10:55:39 +08:00
class="mx_PollOption_content"
2023-02-08 05:12:39 +08:00
>
<div
2023-02-13 10:55:39 +08:00
class="mx_PollOption_optionText"
2023-02-08 05:12:39 +08:00
>
Socks
</div>
<div
2023-02-13 10:55:39 +08:00
class="mx_PollOption_optionVoteCount"
2023-02-08 05:12:39 +08:00
>
0 votes
</div>
</div>
</div>
<div
2023-02-13 10:55:39 +08:00
class="mx_PollOption_popularityBackground"
2023-02-08 05:12:39 +08:00
>
<div
2023-02-13 10:55:39 +08:00
class="mx_PollOption_popularityAmount"
2023-02-08 05:12:39 +08:00
style="width: 0%;"
/>
</div>
</div>
<div
2023-02-13 10:55:39 +08:00
class="mx_PollOption mx_PollOption_ended"
2023-02-08 05:12:39 +08:00
data-testid="pollOption-shoes"
>
<div
2023-02-13 10:55:39 +08:00
class="mx_PollOption_endedOption"
2023-02-08 05:12:39 +08:00
data-value="shoes"
>
<div
2023-02-13 10:55:39 +08:00
class="mx_PollOption_content"
2023-02-08 05:12:39 +08:00
>
<div
2023-02-13 10:55:39 +08:00
class="mx_PollOption_optionText"
2023-02-08 05:12:39 +08:00
>
Shoes
</div>
<div
2023-02-13 10:55:39 +08:00
class="mx_PollOption_optionVoteCount"
2023-02-08 05:12:39 +08:00
>
0 votes
</div>
</div>
</div>
<div
2023-02-13 10:55:39 +08:00
class="mx_PollOption_popularityBackground"
2023-02-08 05:12:39 +08:00
>
<div
2023-02-13 10:55:39 +08:00
class="mx_PollOption_popularityAmount"
2023-02-08 05:12:39 +08: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
aria-label="Loading..."
class="mx_Spinner_icon"
data-testid="spinner"
role="progressbar"
style="width: 16px; height: 16px;"
/>
</div>
</div>
</div>
</div>
`;