2021-11-23 11:27:44 +01:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2021-12-08 15:56:48 +01:00
|
|
|
exports[`MPollBody renders a finished poll 1`] = `
|
2023-01-16 02:25:33 +01:00
|
|
|
<div>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-01-16 02:25:33 +01:00
|
|
|
class="mx_MPollBody"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<h2
|
|
|
|
data-testid="pollQuestion"
|
|
|
|
>
|
2022-03-22 11:32:35 +01:00
|
|
|
What should we order for the party?
|
|
|
|
</h2>
|
2021-12-08 15:56:48 +01:00
|
|
|
<div
|
2023-01-16 02:25:33 +01:00
|
|
|
class="mx_MPollBody_allOptions"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption mx_PollOption_ended"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-pizza"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_endedOption"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-value="pizza"
|
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
Pizza
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
0 votes
|
2021-12-08 15:56:48 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-16 02:25:33 +01:00
|
|
|
</div>
|
2021-12-08 15:56:48 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 0%;"
|
2022-03-22 11:32:35 +01:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption mx_PollOption_ended"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-poutine"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_endedOption"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-value="poutine"
|
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
Poutine
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
0 votes
|
2021-12-08 15:56:48 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-16 02:25:33 +01:00
|
|
|
</div>
|
2021-12-08 15:56:48 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 0%;"
|
2022-03-22 11:32:35 +01:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption mx_PollOption_checked mx_PollOption_ended"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-italian"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_endedOption mx_PollOption_endedOptionWinner"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-value="italian"
|
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
Italian
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
2023-02-13 03:55:39 +01:00
|
|
|
<div
|
|
|
|
class="mx_PollOption_winnerIcon"
|
|
|
|
/>
|
2023-01-16 02:25:33 +01:00
|
|
|
2 votes
|
2021-12-08 15:56:48 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-16 02:25:33 +01:00
|
|
|
</div>
|
2021-12-08 15:56:48 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 67%;"
|
2022-03-22 11:32:35 +01:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption mx_PollOption_ended"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-wings"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_endedOption"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-value="wings"
|
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
Wings
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
1 vote
|
2021-12-08 15:56:48 +01:00
|
|
|
</div>
|
2022-03-22 11:32:35 +01:00
|
|
|
</div>
|
2023-01-16 02:25:33 +01:00
|
|
|
</div>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2021-12-08 15:56:48 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 33%;"
|
2022-03-22 11:32:35 +01:00
|
|
|
/>
|
2021-12-08 15:56:48 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-01-16 02:25:33 +01:00
|
|
|
class="mx_MPollBody_totalVotes"
|
|
|
|
data-testid="totalVotes"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
|
|
|
Final result based on 3 votes
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-16 02:25:33 +01:00
|
|
|
</div>
|
2021-12-08 15:56:48 +01:00
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`MPollBody renders a finished poll with multiple winners 1`] = `
|
2023-01-16 02:25:33 +01:00
|
|
|
<div>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-01-16 02:25:33 +01:00
|
|
|
class="mx_MPollBody"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<h2
|
|
|
|
data-testid="pollQuestion"
|
|
|
|
>
|
2022-03-22 11:32:35 +01:00
|
|
|
What should we order for the party?
|
|
|
|
</h2>
|
2021-12-08 15:56:48 +01:00
|
|
|
<div
|
2023-01-16 02:25:33 +01:00
|
|
|
class="mx_MPollBody_allOptions"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption mx_PollOption_checked mx_PollOption_ended"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-pizza"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_endedOption mx_PollOption_endedOptionWinner"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-value="pizza"
|
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
Pizza
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
2023-02-13 03:55:39 +01:00
|
|
|
<div
|
|
|
|
class="mx_PollOption_winnerIcon"
|
|
|
|
/>
|
2023-01-16 02:25:33 +01:00
|
|
|
2 votes
|
2021-12-08 15:56:48 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-16 02:25:33 +01:00
|
|
|
</div>
|
2021-12-08 15:56:48 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 50%;"
|
2022-03-22 11:32:35 +01:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption mx_PollOption_ended"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-poutine"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_endedOption"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-value="poutine"
|
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
Poutine
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
0 votes
|
2021-12-08 15:56:48 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-16 02:25:33 +01:00
|
|
|
</div>
|
2021-12-08 15:56:48 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 0%;"
|
2022-03-22 11:32:35 +01:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption mx_PollOption_ended"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-italian"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_endedOption"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-value="italian"
|
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
Italian
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
0 votes
|
2021-12-08 15:56:48 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-16 02:25:33 +01:00
|
|
|
</div>
|
2021-12-08 15:56:48 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 0%;"
|
2022-03-22 11:32:35 +01:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption mx_PollOption_checked mx_PollOption_ended"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-wings"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_endedOption mx_PollOption_endedOptionWinner"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-value="wings"
|
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
Wings
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
2023-02-13 03:55:39 +01:00
|
|
|
<div
|
|
|
|
class="mx_PollOption_winnerIcon"
|
|
|
|
/>
|
2023-01-16 02:25:33 +01:00
|
|
|
2 votes
|
2021-12-08 15:56:48 +01:00
|
|
|
</div>
|
2022-03-22 11:32:35 +01:00
|
|
|
</div>
|
2023-01-16 02:25:33 +01:00
|
|
|
</div>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2021-12-08 15:56:48 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 50%;"
|
2022-03-22 11:32:35 +01:00
|
|
|
/>
|
2021-12-08 15:56:48 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-01-16 02:25:33 +01:00
|
|
|
class="mx_MPollBody_totalVotes"
|
|
|
|
data-testid="totalVotes"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
|
|
|
Final result based on 4 votes
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-16 02:25:33 +01:00
|
|
|
</div>
|
2021-12-08 15:56:48 +01:00
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`MPollBody renders a finished poll with no votes 1`] = `
|
2023-01-16 02:25:33 +01:00
|
|
|
<div>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-01-16 02:25:33 +01:00
|
|
|
class="mx_MPollBody"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<h2
|
|
|
|
data-testid="pollQuestion"
|
|
|
|
>
|
2022-03-22 11:32:35 +01:00
|
|
|
What should we order for the party?
|
|
|
|
</h2>
|
2021-12-08 15:56:48 +01:00
|
|
|
<div
|
2023-01-16 02:25:33 +01:00
|
|
|
class="mx_MPollBody_allOptions"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption mx_PollOption_ended"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-pizza"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_endedOption"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-value="pizza"
|
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
Pizza
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
0 votes
|
2021-12-08 15:56:48 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-16 02:25:33 +01:00
|
|
|
</div>
|
2021-12-08 15:56:48 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 0%;"
|
2022-03-22 11:32:35 +01:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption mx_PollOption_ended"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-poutine"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_endedOption"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-value="poutine"
|
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
Poutine
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
0 votes
|
2021-12-08 15:56:48 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-16 02:25:33 +01:00
|
|
|
</div>
|
2021-12-08 15:56:48 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 0%;"
|
2022-03-22 11:32:35 +01:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption mx_PollOption_ended"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-italian"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_endedOption"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-value="italian"
|
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
Italian
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
0 votes
|
2021-12-08 15:56:48 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-16 02:25:33 +01:00
|
|
|
</div>
|
2021-12-08 15:56:48 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 0%;"
|
2022-03-22 11:32:35 +01:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption mx_PollOption_ended"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-wings"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_endedOption"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-value="wings"
|
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2021-12-08 15:56:48 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
Wings
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
0 votes
|
2021-12-08 15:56:48 +01:00
|
|
|
</div>
|
2022-03-22 11:32:35 +01:00
|
|
|
</div>
|
2023-01-16 02:25:33 +01:00
|
|
|
</div>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2021-12-08 15:56:48 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 0%;"
|
2022-03-22 11:32:35 +01:00
|
|
|
/>
|
|
|
|
</div>
|
2021-12-08 15:56:48 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-01-16 02:25:33 +01:00
|
|
|
class="mx_MPollBody_totalVotes"
|
|
|
|
data-testid="totalVotes"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
|
|
|
Final result based on 0 votes
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-16 02:25:33 +01:00
|
|
|
</div>
|
2021-12-08 15:56:48 +01:00
|
|
|
`;
|
|
|
|
|
2021-12-03 11:26:28 +01:00
|
|
|
exports[`MPollBody renders a poll that I have not voted in 1`] = `
|
2023-01-16 02:25:33 +01:00
|
|
|
<div>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-01-16 02:25:33 +01:00
|
|
|
class="mx_MPollBody"
|
2021-12-03 11:26:28 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<h2
|
|
|
|
data-testid="pollQuestion"
|
|
|
|
>
|
2022-03-22 11:32:35 +01:00
|
|
|
What should we order for the party?
|
|
|
|
</h2>
|
2021-12-03 11:26:28 +01:00
|
|
|
<div
|
2023-01-16 02:25:33 +01:00
|
|
|
class="mx_MPollBody_allOptions"
|
2021-12-03 11:26:28 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-pizza"
|
2021-12-03 11:26:28 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<label
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_StyledRadioButton mx_PollOption_live-option mx_StyledRadioButton_enabled"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<input
|
2022-03-22 11:32:35 +01:00
|
|
|
name="poll_answer_select-$mypoll"
|
2023-01-16 02:25:33 +01:00
|
|
|
type="radio"
|
2022-03-22 11:32:35 +01:00
|
|
|
value="pizza"
|
2023-01-16 02:25:33 +01:00
|
|
|
/>
|
|
|
|
<div>
|
|
|
|
<div />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_content"
|
2021-12-03 11:26:28 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2021-12-03 11:26:28 +01:00
|
|
|
>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2021-12-03 11:26:28 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
Pizza
|
2022-03-22 11:32:35 +01:00
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
|
|
|
>
|
|
|
|
|
|
|
|
</div>
|
2023-01-16 02:25:33 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_spacer"
|
|
|
|
/>
|
|
|
|
</label>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2021-12-03 11:26:28 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 0%;"
|
2022-03-22 11:32:35 +01:00
|
|
|
/>
|
2021-12-03 11:26:28 +01:00
|
|
|
</div>
|
2022-03-22 11:32:35 +01:00
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-poutine"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<label
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_StyledRadioButton mx_PollOption_live-option mx_StyledRadioButton_enabled"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<input
|
2022-03-22 11:32:35 +01:00
|
|
|
name="poll_answer_select-$mypoll"
|
2023-01-16 02:25:33 +01:00
|
|
|
type="radio"
|
2022-03-22 11:32:35 +01:00
|
|
|
value="poutine"
|
2023-01-16 02:25:33 +01:00
|
|
|
/>
|
|
|
|
<div>
|
|
|
|
<div />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_content"
|
2021-12-03 11:26:28 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2021-12-03 11:26:28 +01:00
|
|
|
>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2021-12-03 11:26:28 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
Poutine
|
2022-03-22 11:32:35 +01:00
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
|
|
|
>
|
|
|
|
|
|
|
|
</div>
|
2023-01-16 02:25:33 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_spacer"
|
|
|
|
/>
|
|
|
|
</label>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2021-12-03 11:26:28 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 0%;"
|
2022-03-22 11:32:35 +01:00
|
|
|
/>
|
2021-12-03 11:26:28 +01:00
|
|
|
</div>
|
2022-03-22 11:32:35 +01:00
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-italian"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<label
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_StyledRadioButton mx_PollOption_live-option mx_StyledRadioButton_enabled"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<input
|
2022-03-22 11:32:35 +01:00
|
|
|
name="poll_answer_select-$mypoll"
|
2023-01-16 02:25:33 +01:00
|
|
|
type="radio"
|
2022-03-22 11:32:35 +01:00
|
|
|
value="italian"
|
2023-01-16 02:25:33 +01:00
|
|
|
/>
|
|
|
|
<div>
|
|
|
|
<div />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_content"
|
2021-12-03 11:26:28 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2021-12-03 11:26:28 +01:00
|
|
|
>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2021-12-03 11:26:28 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
Italian
|
2022-03-22 11:32:35 +01:00
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
|
|
|
>
|
|
|
|
|
|
|
|
</div>
|
2023-01-16 02:25:33 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_spacer"
|
|
|
|
/>
|
|
|
|
</label>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2021-12-03 11:26:28 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 0%;"
|
2022-03-22 11:32:35 +01:00
|
|
|
/>
|
2021-12-03 11:26:28 +01:00
|
|
|
</div>
|
2022-03-22 11:32:35 +01:00
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-wings"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<label
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_StyledRadioButton mx_PollOption_live-option mx_StyledRadioButton_enabled"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<input
|
2022-03-22 11:32:35 +01:00
|
|
|
name="poll_answer_select-$mypoll"
|
2023-01-16 02:25:33 +01:00
|
|
|
type="radio"
|
2022-03-22 11:32:35 +01:00
|
|
|
value="wings"
|
2023-01-16 02:25:33 +01:00
|
|
|
/>
|
|
|
|
<div>
|
|
|
|
<div />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_content"
|
2021-12-03 11:26:28 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2021-12-03 11:26:28 +01:00
|
|
|
>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2021-12-03 11:26:28 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
Wings
|
2022-03-22 11:32:35 +01:00
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
|
|
|
>
|
|
|
|
|
|
|
|
</div>
|
2023-01-16 02:25:33 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_spacer"
|
|
|
|
/>
|
|
|
|
</label>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2021-12-03 11:26:28 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 0%;"
|
2022-03-22 11:32:35 +01:00
|
|
|
/>
|
2021-12-03 11:26:28 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-01-16 02:25:33 +01:00
|
|
|
class="mx_MPollBody_totalVotes"
|
|
|
|
data-testid="totalVotes"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
|
|
|
3 votes cast. Vote to see the results
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-16 02:25:33 +01:00
|
|
|
</div>
|
2021-12-03 11:26:28 +01:00
|
|
|
`;
|
|
|
|
|
2021-11-23 11:27:44 +01:00
|
|
|
exports[`MPollBody renders a poll with local, non-local and invalid votes 1`] = `
|
2023-01-16 02:25:33 +01:00
|
|
|
<div>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-01-16 02:25:33 +01:00
|
|
|
class="mx_MPollBody"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<h2
|
|
|
|
data-testid="pollQuestion"
|
|
|
|
>
|
2022-03-22 11:32:35 +01:00
|
|
|
What should we order for the party?
|
|
|
|
</h2>
|
2021-11-23 11:27:44 +01:00
|
|
|
<div
|
2023-01-16 02:25:33 +01:00
|
|
|
class="mx_MPollBody_allOptions"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-pizza"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<label
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_StyledRadioButton mx_PollOption_live-option mx_StyledRadioButton_enabled"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<input
|
2022-03-22 11:32:35 +01:00
|
|
|
name="poll_answer_select-$mypoll"
|
2023-01-16 02:25:33 +01:00
|
|
|
type="radio"
|
2022-03-22 11:32:35 +01:00
|
|
|
value="pizza"
|
2023-01-16 02:25:33 +01:00
|
|
|
/>
|
|
|
|
<div>
|
|
|
|
<div />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_content"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
Pizza
|
2022-03-22 11:32:35 +01:00
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
1 vote
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_spacer"
|
|
|
|
/>
|
|
|
|
</label>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2021-11-23 11:27:44 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 20%;"
|
2022-03-22 11:32:35 +01:00
|
|
|
/>
|
2021-11-23 11:27:44 +01:00
|
|
|
</div>
|
2022-03-22 11:32:35 +01:00
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-poutine"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<label
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_StyledRadioButton mx_PollOption_live-option mx_StyledRadioButton_enabled"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<input
|
2022-03-22 11:32:35 +01:00
|
|
|
name="poll_answer_select-$mypoll"
|
2023-01-16 02:25:33 +01:00
|
|
|
type="radio"
|
2022-03-22 11:32:35 +01:00
|
|
|
value="poutine"
|
2023-01-16 02:25:33 +01:00
|
|
|
/>
|
|
|
|
<div>
|
|
|
|
<div />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_content"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
Poutine
|
2022-03-22 11:32:35 +01:00
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
0 votes
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_spacer"
|
|
|
|
/>
|
|
|
|
</label>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2021-11-23 11:27:44 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 0%;"
|
2022-03-22 11:32:35 +01:00
|
|
|
/>
|
2021-11-23 11:27:44 +01:00
|
|
|
</div>
|
2022-03-22 11:32:35 +01:00
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption mx_PollOption_checked"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-italian"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<label
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_StyledRadioButton mx_PollOption_live-option mx_StyledRadioButton_enabled mx_StyledRadioButton_checked"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<input
|
2022-03-22 11:32:35 +01:00
|
|
|
name="poll_answer_select-$mypoll"
|
2023-01-16 02:25:33 +01:00
|
|
|
type="radio"
|
2022-03-22 11:32:35 +01:00
|
|
|
value="italian"
|
2023-01-16 02:25:33 +01:00
|
|
|
/>
|
|
|
|
<div>
|
|
|
|
<div />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_content"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
Italian
|
2022-03-22 11:32:35 +01:00
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
3 votes
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_spacer"
|
|
|
|
/>
|
|
|
|
</label>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2021-11-23 11:27:44 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 60%;"
|
2022-03-22 11:32:35 +01:00
|
|
|
/>
|
2021-11-23 11:27:44 +01:00
|
|
|
</div>
|
2022-03-22 11:32:35 +01:00
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-wings"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<label
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_StyledRadioButton mx_PollOption_live-option mx_StyledRadioButton_enabled"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<input
|
2022-03-22 11:32:35 +01:00
|
|
|
name="poll_answer_select-$mypoll"
|
2023-01-16 02:25:33 +01:00
|
|
|
type="radio"
|
2022-03-22 11:32:35 +01:00
|
|
|
value="wings"
|
2023-01-16 02:25:33 +01:00
|
|
|
/>
|
|
|
|
<div>
|
|
|
|
<div />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_content"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
Wings
|
2022-03-22 11:32:35 +01:00
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
1 vote
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_spacer"
|
|
|
|
/>
|
|
|
|
</label>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2021-11-23 11:27:44 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 20%;"
|
2022-03-22 11:32:35 +01:00
|
|
|
/>
|
2021-11-23 11:27:44 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-01-16 02:25:33 +01:00
|
|
|
class="mx_MPollBody_totalVotes"
|
|
|
|
data-testid="totalVotes"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
|
|
|
Based on 5 votes
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-16 02:25:33 +01:00
|
|
|
</div>
|
2021-11-23 11:27:44 +01:00
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`MPollBody renders a poll with no votes 1`] = `
|
2023-01-16 02:25:33 +01:00
|
|
|
<div>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-01-16 02:25:33 +01:00
|
|
|
class="mx_MPollBody"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<h2
|
|
|
|
data-testid="pollQuestion"
|
|
|
|
>
|
2022-03-22 11:32:35 +01:00
|
|
|
What should we order for the party?
|
|
|
|
</h2>
|
2021-11-23 11:27:44 +01:00
|
|
|
<div
|
2023-01-16 02:25:33 +01:00
|
|
|
class="mx_MPollBody_allOptions"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-pizza"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<label
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_StyledRadioButton mx_PollOption_live-option mx_StyledRadioButton_enabled"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<input
|
2022-03-22 11:32:35 +01:00
|
|
|
name="poll_answer_select-$mypoll"
|
2023-01-16 02:25:33 +01:00
|
|
|
type="radio"
|
2022-03-22 11:32:35 +01:00
|
|
|
value="pizza"
|
2023-01-16 02:25:33 +01:00
|
|
|
/>
|
|
|
|
<div>
|
|
|
|
<div />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_content"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
Pizza
|
2022-03-22 11:32:35 +01:00
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
|
|
|
>
|
|
|
|
|
|
|
|
</div>
|
2023-01-16 02:25:33 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_spacer"
|
|
|
|
/>
|
|
|
|
</label>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2021-11-23 11:27:44 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 0%;"
|
2022-03-22 11:32:35 +01:00
|
|
|
/>
|
2021-11-23 11:27:44 +01:00
|
|
|
</div>
|
2022-03-22 11:32:35 +01:00
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-poutine"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<label
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_StyledRadioButton mx_PollOption_live-option mx_StyledRadioButton_enabled"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<input
|
2022-03-22 11:32:35 +01:00
|
|
|
name="poll_answer_select-$mypoll"
|
2023-01-16 02:25:33 +01:00
|
|
|
type="radio"
|
2022-03-22 11:32:35 +01:00
|
|
|
value="poutine"
|
2023-01-16 02:25:33 +01:00
|
|
|
/>
|
|
|
|
<div>
|
|
|
|
<div />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_content"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
Poutine
|
2022-03-22 11:32:35 +01:00
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
|
|
|
>
|
|
|
|
|
|
|
|
</div>
|
2023-01-16 02:25:33 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_spacer"
|
|
|
|
/>
|
|
|
|
</label>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2021-11-23 11:27:44 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 0%;"
|
2022-03-22 11:32:35 +01:00
|
|
|
/>
|
2021-11-23 11:27:44 +01:00
|
|
|
</div>
|
2022-03-22 11:32:35 +01:00
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-italian"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<label
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_StyledRadioButton mx_PollOption_live-option mx_StyledRadioButton_enabled"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<input
|
2022-03-22 11:32:35 +01:00
|
|
|
name="poll_answer_select-$mypoll"
|
2023-01-16 02:25:33 +01:00
|
|
|
type="radio"
|
2022-03-22 11:32:35 +01:00
|
|
|
value="italian"
|
2023-01-16 02:25:33 +01:00
|
|
|
/>
|
|
|
|
<div>
|
|
|
|
<div />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_content"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
Italian
|
2022-03-22 11:32:35 +01:00
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
|
|
|
>
|
|
|
|
|
|
|
|
</div>
|
2023-01-16 02:25:33 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_spacer"
|
|
|
|
/>
|
|
|
|
</label>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2021-11-23 11:27:44 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 0%;"
|
2022-03-22 11:32:35 +01:00
|
|
|
/>
|
2021-11-23 11:27:44 +01:00
|
|
|
</div>
|
2022-03-22 11:32:35 +01:00
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-wings"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<label
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_StyledRadioButton mx_PollOption_live-option mx_StyledRadioButton_enabled"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<input
|
2022-03-22 11:32:35 +01:00
|
|
|
name="poll_answer_select-$mypoll"
|
2023-01-16 02:25:33 +01:00
|
|
|
type="radio"
|
2022-03-22 11:32:35 +01:00
|
|
|
value="wings"
|
2023-01-16 02:25:33 +01:00
|
|
|
/>
|
|
|
|
<div>
|
|
|
|
<div />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_content"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
Wings
|
2022-03-22 11:32:35 +01:00
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
|
|
|
>
|
|
|
|
|
|
|
|
</div>
|
2023-01-16 02:25:33 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_spacer"
|
|
|
|
/>
|
|
|
|
</label>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2021-11-23 11:27:44 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 0%;"
|
2022-03-22 11:32:35 +01:00
|
|
|
/>
|
2021-11-23 11:27:44 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-01-16 02:25:33 +01:00
|
|
|
class="mx_MPollBody_totalVotes"
|
|
|
|
data-testid="totalVotes"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
|
|
|
No votes cast
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-16 02:25:33 +01:00
|
|
|
</div>
|
2021-11-23 11:27:44 +01:00
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`MPollBody renders a poll with only non-local votes 1`] = `
|
2023-01-16 02:25:33 +01:00
|
|
|
<div>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-01-16 02:25:33 +01:00
|
|
|
class="mx_MPollBody"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<h2
|
|
|
|
data-testid="pollQuestion"
|
|
|
|
>
|
2022-03-22 11:32:35 +01:00
|
|
|
What should we order for the party?
|
|
|
|
</h2>
|
2021-11-23 11:27:44 +01:00
|
|
|
<div
|
2023-01-16 02:25:33 +01:00
|
|
|
class="mx_MPollBody_allOptions"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-pizza"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<label
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_StyledRadioButton mx_PollOption_live-option mx_StyledRadioButton_enabled"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<input
|
2022-03-22 11:32:35 +01:00
|
|
|
name="poll_answer_select-$mypoll"
|
2023-01-16 02:25:33 +01:00
|
|
|
type="radio"
|
2022-03-22 11:32:35 +01:00
|
|
|
value="pizza"
|
2023-01-16 02:25:33 +01:00
|
|
|
/>
|
|
|
|
<div>
|
|
|
|
<div />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_content"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
Pizza
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
0 votes
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_spacer"
|
|
|
|
/>
|
|
|
|
</label>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 0%;"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-poutine"
|
|
|
|
>
|
|
|
|
<label
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_StyledRadioButton mx_PollOption_live-option mx_StyledRadioButton_enabled"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<input
|
|
|
|
name="poll_answer_select-$mypoll"
|
|
|
|
type="radio"
|
|
|
|
value="poutine"
|
|
|
|
/>
|
|
|
|
<div>
|
|
|
|
<div />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_content"
|
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
Poutine
|
2022-03-22 11:32:35 +01:00
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
0 votes
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_spacer"
|
|
|
|
/>
|
|
|
|
</label>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 0%;"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-italian"
|
|
|
|
>
|
|
|
|
<label
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_StyledRadioButton mx_PollOption_live-option mx_StyledRadioButton_enabled"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<input
|
|
|
|
name="poll_answer_select-$mypoll"
|
|
|
|
type="radio"
|
|
|
|
value="italian"
|
|
|
|
/>
|
|
|
|
<div>
|
|
|
|
<div />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_content"
|
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
Italian
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
2 votes
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_spacer"
|
|
|
|
/>
|
|
|
|
</label>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 67%;"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption mx_PollOption_checked"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-wings"
|
|
|
|
>
|
|
|
|
<label
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_StyledRadioButton mx_PollOption_live-option mx_StyledRadioButton_enabled mx_StyledRadioButton_checked"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<input
|
|
|
|
name="poll_answer_select-$mypoll"
|
|
|
|
type="radio"
|
|
|
|
value="wings"
|
|
|
|
/>
|
|
|
|
<div>
|
|
|
|
<div />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_content"
|
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
Wings
|
2022-03-22 11:32:35 +01:00
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
1 vote
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_spacer"
|
|
|
|
/>
|
|
|
|
</label>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 33%;"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_MPollBody_totalVotes"
|
|
|
|
data-testid="totalVotes"
|
|
|
|
>
|
|
|
|
Based on 3 votes
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`MPollBody renders an undisclosed, finished poll 1`] = `
|
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
class="mx_MPollBody"
|
|
|
|
>
|
|
|
|
<h2
|
|
|
|
data-testid="pollQuestion"
|
|
|
|
>
|
|
|
|
What should we order for the party?
|
|
|
|
</h2>
|
|
|
|
<div
|
|
|
|
class="mx_MPollBody_allOptions"
|
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption mx_PollOption_checked mx_PollOption_ended"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-pizza"
|
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_endedOption mx_PollOption_endedOptionWinner"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-value="pizza"
|
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
Pizza
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
2023-02-13 03:55:39 +01:00
|
|
|
<div
|
|
|
|
class="mx_PollOption_winnerIcon"
|
|
|
|
/>
|
2023-01-16 02:25:33 +01:00
|
|
|
2 votes
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 50%;"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption mx_PollOption_ended"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-poutine"
|
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_endedOption"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-value="poutine"
|
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
Poutine
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
0 votes
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 0%;"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption mx_PollOption_ended"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-italian"
|
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_endedOption"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-value="italian"
|
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
Italian
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
0 votes
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 0%;"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption mx_PollOption_checked mx_PollOption_ended"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-wings"
|
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_endedOption mx_PollOption_endedOptionWinner"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-value="wings"
|
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
Wings
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
2023-02-13 03:55:39 +01:00
|
|
|
<div
|
|
|
|
class="mx_PollOption_winnerIcon"
|
|
|
|
/>
|
2023-01-16 02:25:33 +01:00
|
|
|
2 votes
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 50%;"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_MPollBody_totalVotes"
|
|
|
|
data-testid="totalVotes"
|
|
|
|
>
|
|
|
|
Final result based on 4 votes
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`MPollBody renders an undisclosed, unfinished poll 1`] = `
|
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
class="mx_MPollBody"
|
|
|
|
>
|
|
|
|
<h2
|
|
|
|
data-testid="pollQuestion"
|
|
|
|
>
|
|
|
|
What should we order for the party?
|
|
|
|
</h2>
|
|
|
|
<div
|
|
|
|
class="mx_MPollBody_allOptions"
|
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-pizza"
|
|
|
|
>
|
|
|
|
<label
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_StyledRadioButton mx_PollOption_live-option mx_StyledRadioButton_enabled"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<input
|
|
|
|
name="poll_answer_select-$mypoll"
|
|
|
|
type="radio"
|
|
|
|
value="pizza"
|
|
|
|
/>
|
|
|
|
<div>
|
|
|
|
<div />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_content"
|
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
Pizza
|
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
|
|
|
>
|
|
|
|
|
|
|
|
</div>
|
2023-01-16 02:25:33 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_spacer"
|
|
|
|
/>
|
|
|
|
</label>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2021-11-23 11:27:44 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 0%;"
|
2022-03-22 11:32:35 +01:00
|
|
|
/>
|
2021-11-23 11:27:44 +01:00
|
|
|
</div>
|
2022-03-22 11:32:35 +01:00
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-poutine"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<label
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_StyledRadioButton mx_PollOption_live-option mx_StyledRadioButton_enabled"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<input
|
2022-03-22 11:32:35 +01:00
|
|
|
name="poll_answer_select-$mypoll"
|
2023-01-16 02:25:33 +01:00
|
|
|
type="radio"
|
2022-03-22 11:32:35 +01:00
|
|
|
value="poutine"
|
2023-01-16 02:25:33 +01:00
|
|
|
/>
|
|
|
|
<div>
|
|
|
|
<div />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_content"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
Poutine
|
2022-03-22 11:32:35 +01:00
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
|
|
|
>
|
|
|
|
|
|
|
|
</div>
|
2023-01-16 02:25:33 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_spacer"
|
|
|
|
/>
|
|
|
|
</label>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2021-11-23 11:27:44 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 0%;"
|
2022-03-22 11:32:35 +01:00
|
|
|
/>
|
2021-11-23 11:27:44 +01:00
|
|
|
</div>
|
2022-03-22 11:32:35 +01:00
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-italian"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<label
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_StyledRadioButton mx_PollOption_live-option mx_StyledRadioButton_enabled"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<input
|
2022-03-22 11:32:35 +01:00
|
|
|
name="poll_answer_select-$mypoll"
|
2023-01-16 02:25:33 +01:00
|
|
|
type="radio"
|
2022-03-22 11:32:35 +01:00
|
|
|
value="italian"
|
2023-01-16 02:25:33 +01:00
|
|
|
/>
|
|
|
|
<div>
|
|
|
|
<div />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_content"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
Italian
|
2022-03-22 11:32:35 +01:00
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
|
|
|
>
|
|
|
|
|
|
|
|
</div>
|
2023-01-16 02:25:33 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_spacer"
|
|
|
|
/>
|
|
|
|
</label>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2021-11-23 11:27:44 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 0%;"
|
2022-03-22 11:32:35 +01:00
|
|
|
/>
|
2021-11-23 11:27:44 +01:00
|
|
|
</div>
|
2022-03-22 11:32:35 +01:00
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption"
|
2023-01-16 02:25:33 +01:00
|
|
|
data-testid="pollOption-wings"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<label
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_StyledRadioButton mx_PollOption_live-option mx_StyledRadioButton_enabled"
|
2023-01-16 02:25:33 +01:00
|
|
|
>
|
|
|
|
<input
|
2022-03-22 11:32:35 +01:00
|
|
|
name="poll_answer_select-$mypoll"
|
2023-01-16 02:25:33 +01:00
|
|
|
type="radio"
|
2022-03-22 11:32:35 +01:00
|
|
|
value="wings"
|
2023-01-16 02:25:33 +01:00
|
|
|
/>
|
|
|
|
<div>
|
|
|
|
<div />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_content"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_content"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionText"
|
2021-11-23 11:27:44 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
Wings
|
2022-03-22 11:32:35 +01:00
|
|
|
</div>
|
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_optionVoteCount"
|
|
|
|
>
|
|
|
|
|
|
|
|
</div>
|
2023-01-16 02:25:33 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_spacer"
|
|
|
|
/>
|
|
|
|
</label>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityBackground"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2021-11-23 11:27:44 +01:00
|
|
|
<div
|
2023-02-13 03:55:39 +01:00
|
|
|
class="mx_PollOption_popularityAmount"
|
2023-01-16 02:25:33 +01:00
|
|
|
style="width: 0%;"
|
2022-03-22 11:32:35 +01:00
|
|
|
/>
|
2021-11-23 11:27:44 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-03-22 11:32:35 +01:00
|
|
|
<div
|
2023-01-16 02:25:33 +01:00
|
|
|
class="mx_MPollBody_totalVotes"
|
|
|
|
data-testid="totalVotes"
|
2022-03-22 11:32:35 +01:00
|
|
|
>
|
2023-01-16 02:25:33 +01:00
|
|
|
Results will be visible when the poll is ended
|
2022-03-22 11:32:35 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-16 02:25:33 +01:00
|
|
|
</div>
|
2021-11-23 11:27:44 +01:00
|
|
|
`;
|