Show who voted for what in poll results #980
Annotations
10 errors
Run tests:
test/unit-tests/components/views/messages/MPollBody-test.tsx#L752
expect(received).toMatchSnapshot()
Snapshot name: `MPollBody renders a poll with no votes 1`
- Snapshot - 12
+ Received + 4
@@ -34,18 +34,16 @@
<div
class="mx_PollOption_optionText"
>
Pizza
</div>
- <div>
<div
- style="display: flex;"
+ class="mx_PollOption_votesWrapper"
>
<span
class="mx_PollOption_optionVoteCount"
/>
- </div>
</div>
</div>
</div>
<div
class="mx_StyledRadioButton_spacer"
@@ -84,18 +82,16 @@
<div
class="mx_PollOption_optionText"
>
Poutine
</div>
- <div>
<div
- style="display: flex;"
+ class="mx_PollOption_votesWrapper"
>
<span
class="mx_PollOption_optionVoteCount"
/>
- </div>
</div>
</div>
</div>
<div
class="mx_StyledRadioButton_spacer"
@@ -134,18 +130,16 @@
<div
class="mx_PollOption_optionText"
>
Italian
</div>
- <div>
<div
- style="display: flex;"
+ class="mx_PollOption_votesWrapper"
>
<span
class="mx_PollOption_optionVoteCount"
/>
- </div>
</div>
</div>
</div>
<div
class="mx_StyledRadioButton_spacer"
@@ -184,18 +178,16 @@
<div
class="mx_PollOption_optionText"
>
Wings
</div>
- <div>
<div
- style="display: flex;"
+ class="mx_PollOption_votesWrapper"
>
<span
class="mx_PollOption_optionVoteCount"
/>
- </div>
</div>
</div>
</div>
<div
class="mx_StyledRadioButton_spacer"
at Object.toMatchSnapshot (test/unit-tests/components/views/messages/MPollBody-test.tsx:752:27)
|
Run tests:
test/unit-tests/components/views/messages/MPollBody-test.tsx#L764
expect(received).toMatchSnapshot()
Snapshot name: `MPollBody renders a poll with only non-local votes 1`
- Snapshot - 16
+ Received + 20
@@ -34,30 +34,31 @@
<div
class="mx_PollOption_optionText"
>
Pizza
</div>
- <div>
+ <div
+ class="mx_PollOption_votesWrapper"
+ >
<div
- style="display: flex;"
+ class="mx_PollOption_facePile"
>
<div
class="mx_AccessibleButton mx_FacePile"
role="button"
- style="margin-right: 10px;"
tabindex="0"
>
<div
class="_stacked-avatars_mcap2_111"
/>
+ </div>
</div>
<span
class="mx_PollOption_optionVoteCount"
>
0 votes
</span>
- </div>
</div>
</div>
</div>
<div
class="mx_StyledRadioButton_spacer"
@@ -96,30 +97,31 @@
<div
class="mx_PollOption_optionText"
>
Poutine
</div>
- <div>
+ <div
+ class="mx_PollOption_votesWrapper"
+ >
<div
- style="display: flex;"
+ class="mx_PollOption_facePile"
>
<div
class="mx_AccessibleButton mx_FacePile"
role="button"
- style="margin-right: 10px;"
tabindex="0"
>
<div
class="_stacked-avatars_mcap2_111"
/>
</div>
+ </div>
<span
class="mx_PollOption_optionVoteCount"
>
0 votes
</span>
- </div>
</div>
</div>
</div>
<div
class="mx_StyledRadioButton_spacer"
@@ -158,30 +160,31 @@
<div
class="mx_PollOption_optionText"
>
Italian
</div>
- <div>
+ <div
+ class="mx_PollOption_votesWrapper"
+ >
<div
- style="display: flex;"
+ class="mx_PollOption_facePile"
>
<div
class="mx_AccessibleButton mx_FacePile"
role="button"
- style="margin-right: 10px;"
tabindex="0"
>
<div
class="_stacked-avatars_mcap2_111"
/>
</div>
+ </div>
<span
class="mx_PollOption_optionVoteCount"
>
2 votes
</span>
- </div>
</div>
</div>
</div>
<div
class="mx_StyledRadioButton_spacer"
@@ -220,30 +223,31 @@
<div
class="mx_PollOption_optionText"
>
Wings
</div>
- <div>
+ <div
+ class="mx_PollOption_votesWrapper"
+ >
<div
- style="display: flex;"
+ class="mx_PollOption_facePile"
>
<div
class="mx_AccessibleButton mx_FacePile"
role="button"
- style="margin-right: 10px;"
tabinde
|
Run tests:
test/unit-tests/components/views/messages/MPollBody-test.tsx#L793
expect(received).toMatchSnapshot()
Snapshot name: `MPollBody renders a poll with local, non-local and invalid votes 1`
- Snapshot - 16
+ Received + 20
@@ -34,30 +34,31 @@
<div
class="mx_PollOption_optionText"
>
Pizza
</div>
- <div>
+ <div
+ class="mx_PollOption_votesWrapper"
+ >
<div
- style="display: flex;"
+ class="mx_PollOption_facePile"
>
<div
class="mx_AccessibleButton mx_FacePile"
role="button"
- style="margin-right: 10px;"
tabindex="0"
>
<div
class="_stacked-avatars_mcap2_111"
/>
+ </div>
</div>
<span
class="mx_PollOption_optionVoteCount"
>
1 vote
</span>
- </div>
</div>
</div>
</div>
<div
class="mx_StyledRadioButton_spacer"
@@ -96,30 +97,31 @@
<div
class="mx_PollOption_optionText"
>
Poutine
</div>
- <div>
+ <div
+ class="mx_PollOption_votesWrapper"
+ >
<div
- style="display: flex;"
+ class="mx_PollOption_facePile"
>
<div
class="mx_AccessibleButton mx_FacePile"
role="button"
- style="margin-right: 10px;"
tabindex="0"
>
<div
class="_stacked-avatars_mcap2_111"
/>
</div>
+ </div>
<span
class="mx_PollOption_optionVoteCount"
>
0 votes
</span>
- </div>
</div>
</div>
</div>
<div
class="mx_StyledRadioButton_spacer"
@@ -158,30 +160,31 @@
<div
class="mx_PollOption_optionText"
>
Italian
</div>
- <div>
+ <div
+ class="mx_PollOption_votesWrapper"
+ >
<div
- style="display: flex;"
+ class="mx_PollOption_facePile"
>
<div
class="mx_AccessibleButton mx_FacePile"
role="button"
- style="margin-right: 10px;"
tabindex="0"
>
<div
class="_stacked-avatars_mcap2_111"
/>
</div>
+ </div>
<span
class="mx_PollOption_optionVoteCount"
>
3 votes
</span>
- </div>
</div>
</div>
</div>
<div
class="mx_StyledRadioButton_spacer"
@@ -220,30 +223,31 @@
<div
class="mx_PollOption_optionText"
>
Wings
</div>
- <div>
+ <div
+ class="mx_PollOption_votesWrapper"
+ >
<div
- style="display: flex;"
+ class="mx_PollOption_facePile"
>
<div
class="mx_AccessibleButton mx_FacePile"
role="button"
- style="margin-right: 10px;"
|
Run tests:
test/unit-tests/components/views/messages/MPollBody-test.tsx#L805
expect(received).toMatchSnapshot()
Snapshot name: `MPollBody renders a poll that I have not voted in 1`
- Snapshot - 12
+ Received + 4
@@ -34,18 +34,16 @@
<div
class="mx_PollOption_optionText"
>
Pizza
</div>
- <div>
<div
- style="display: flex;"
+ class="mx_PollOption_votesWrapper"
>
<span
class="mx_PollOption_optionVoteCount"
/>
- </div>
</div>
</div>
</div>
<div
class="mx_StyledRadioButton_spacer"
@@ -84,18 +82,16 @@
<div
class="mx_PollOption_optionText"
>
Poutine
</div>
- <div>
<div
- style="display: flex;"
+ class="mx_PollOption_votesWrapper"
>
<span
class="mx_PollOption_optionVoteCount"
/>
- </div>
</div>
</div>
</div>
<div
class="mx_StyledRadioButton_spacer"
@@ -134,18 +130,16 @@
<div
class="mx_PollOption_optionText"
>
Italian
</div>
- <div>
<div
- style="display: flex;"
+ class="mx_PollOption_votesWrapper"
>
<span
class="mx_PollOption_optionVoteCount"
/>
- </div>
</div>
</div>
</div>
<div
class="mx_StyledRadioButton_spacer"
@@ -184,18 +178,16 @@
<div
class="mx_PollOption_optionText"
>
Wings
</div>
- <div>
<div
- style="display: flex;"
+ class="mx_PollOption_votesWrapper"
>
<span
class="mx_PollOption_optionVoteCount"
/>
- </div>
</div>
</div>
</div>
<div
class="mx_StyledRadioButton_spacer"
at Object.toMatchSnapshot (test/unit-tests/components/views/messages/MPollBody-test.tsx:805:27)
|
Run tests:
test/unit-tests/components/views/messages/MPollBody-test.tsx#L811
expect(received).toMatchSnapshot()
Snapshot name: `MPollBody renders a finished poll with no votes 1`
- Snapshot - 16
+ Received + 20
@@ -24,30 +24,31 @@
<div
class="mx_PollOption_optionText"
>
Pizza
</div>
- <div>
+ <div
+ class="mx_PollOption_votesWrapper"
+ >
<div
- style="display: flex;"
+ class="mx_PollOption_facePile"
>
<div
class="mx_AccessibleButton mx_FacePile"
role="button"
- style="margin-right: 10px;"
tabindex="0"
>
<div
class="_stacked-avatars_mcap2_111"
/>
+ </div>
</div>
<span
class="mx_PollOption_optionVoteCount"
>
0 votes
</span>
- </div>
</div>
</div>
</div>
<div
class="mx_PollOption_popularityBackground"
@@ -72,30 +73,31 @@
<div
class="mx_PollOption_optionText"
>
Poutine
</div>
- <div>
+ <div
+ class="mx_PollOption_votesWrapper"
+ >
<div
- style="display: flex;"
+ class="mx_PollOption_facePile"
>
<div
class="mx_AccessibleButton mx_FacePile"
role="button"
- style="margin-right: 10px;"
tabindex="0"
>
<div
class="_stacked-avatars_mcap2_111"
/>
</div>
+ </div>
<span
class="mx_PollOption_optionVoteCount"
>
0 votes
</span>
- </div>
</div>
</div>
</div>
<div
class="mx_PollOption_popularityBackground"
@@ -120,30 +122,31 @@
<div
class="mx_PollOption_optionText"
>
Italian
</div>
- <div>
+ <div
+ class="mx_PollOption_votesWrapper"
+ >
<div
- style="display: flex;"
+ class="mx_PollOption_facePile"
>
<div
class="mx_AccessibleButton mx_FacePile"
role="button"
- style="margin-right: 10px;"
tabindex="0"
>
<div
class="_stacked-avatars_mcap2_111"
/>
</div>
+ </div>
<span
class="mx_PollOption_optionVoteCount"
>
0 votes
</span>
- </div>
</div>
</div>
</div>
<div
class="mx_PollOption_popularityBackground"
@@ -168,30 +171,31 @@
<div
class="mx_PollOption_optionText"
>
Wings
</div>
- <div>
+ <div
+ class="mx_PollOption_votesWrapper"
+ >
<div
- style="display: flex;"
+ class="mx_PollOption_facePile"
>
<div
class="mx_AccessibleButton mx_FacePile"
role="button"
- style="margin-right: 10px;"
tabindex="0"
>
<div
class="_stacked-avatars_mcap2_111"
/>
</div>
+ </div>
<span
class="mx
|
Run tests:
test/unit-tests/components/views/messages/MPollBody-test.tsx#L824
expect(received).toMatchSnapshot()
Snapshot name: `MPollBody renders a finished poll 1`
- Snapshot - 16
+ Received + 20
@@ -24,30 +24,31 @@
<div
class="mx_PollOption_optionText"
>
Pizza
</div>
- <div>
+ <div
+ class="mx_PollOption_votesWrapper"
+ >
<div
- style="display: flex;"
+ class="mx_PollOption_facePile"
>
<div
class="mx_AccessibleButton mx_FacePile"
role="button"
- style="margin-right: 10px;"
tabindex="0"
>
<div
class="_stacked-avatars_mcap2_111"
/>
+ </div>
</div>
<span
class="mx_PollOption_optionVoteCount"
>
0 votes
</span>
- </div>
</div>
</div>
</div>
<div
class="mx_PollOption_popularityBackground"
@@ -72,30 +73,31 @@
<div
class="mx_PollOption_optionText"
>
Poutine
</div>
- <div>
+ <div
+ class="mx_PollOption_votesWrapper"
+ >
<div
- style="display: flex;"
+ class="mx_PollOption_facePile"
>
<div
class="mx_AccessibleButton mx_FacePile"
role="button"
- style="margin-right: 10px;"
tabindex="0"
>
<div
class="_stacked-avatars_mcap2_111"
/>
</div>
+ </div>
<span
class="mx_PollOption_optionVoteCount"
>
0 votes
</span>
- </div>
</div>
</div>
</div>
<div
class="mx_PollOption_popularityBackground"
@@ -120,33 +122,34 @@
<div
class="mx_PollOption_optionText"
>
Italian
</div>
- <div>
+ <div
+ class="mx_PollOption_votesWrapper"
+ >
<div
- style="display: flex;"
+ class="mx_PollOption_facePile"
>
<div
class="mx_AccessibleButton mx_FacePile"
role="button"
- style="margin-right: 10px;"
tabindex="0"
>
<div
class="_stacked-avatars_mcap2_111"
/>
</div>
+ </div>
<span
class="mx_PollOption_optionVoteCount"
>
<div
class="mx_PollOption_winnerIcon"
/>
2 votes
</span>
- </div>
</div>
</div>
</div>
<div
class="mx_PollOption_popularityBackground"
@@ -171,30 +174,31 @@
<div
class="mx_PollOption_optionText"
>
Wings
</div>
- <div>
+ <div
+ class="mx_PollOption_votesWrapper"
+ >
<div
- style="display: flex;"
+ class="mx_PollOption_facePile"
>
<div
class="mx_AccessibleButton mx_FacePile"
role="button"
- style="margin-right: 10px;"
tabindex="0"
>
<div
class="_stacked-avatars_mcap2_111"
/>
|
Run tests:
test/unit-tests/components/views/messages/MPollBody-test.tsx#L838
expect(received).toMatchSnapshot()
Snapshot name: `MPollBody renders a finished poll with multiple winners 1`
- Snapshot - 16
+ Received + 20
@@ -24,33 +24,34 @@
<div
class="mx_PollOption_optionText"
>
Pizza
</div>
- <div>
+ <div
+ class="mx_PollOption_votesWrapper"
+ >
<div
- style="display: flex;"
+ class="mx_PollOption_facePile"
>
<div
class="mx_AccessibleButton mx_FacePile"
role="button"
- style="margin-right: 10px;"
tabindex="0"
>
<div
class="_stacked-avatars_mcap2_111"
/>
+ </div>
</div>
<span
class="mx_PollOption_optionVoteCount"
>
<div
class="mx_PollOption_winnerIcon"
/>
2 votes
</span>
- </div>
</div>
</div>
</div>
<div
class="mx_PollOption_popularityBackground"
@@ -75,30 +76,31 @@
<div
class="mx_PollOption_optionText"
>
Poutine
</div>
- <div>
+ <div
+ class="mx_PollOption_votesWrapper"
+ >
<div
- style="display: flex;"
+ class="mx_PollOption_facePile"
>
<div
class="mx_AccessibleButton mx_FacePile"
role="button"
- style="margin-right: 10px;"
tabindex="0"
>
<div
class="_stacked-avatars_mcap2_111"
/>
</div>
+ </div>
<span
class="mx_PollOption_optionVoteCount"
>
0 votes
</span>
- </div>
</div>
</div>
</div>
<div
class="mx_PollOption_popularityBackground"
@@ -123,30 +125,31 @@
<div
class="mx_PollOption_optionText"
>
Italian
</div>
- <div>
+ <div
+ class="mx_PollOption_votesWrapper"
+ >
<div
- style="display: flex;"
+ class="mx_PollOption_facePile"
>
<div
class="mx_AccessibleButton mx_FacePile"
role="button"
- style="margin-right: 10px;"
tabindex="0"
>
<div
class="_stacked-avatars_mcap2_111"
/>
</div>
+ </div>
<span
class="mx_PollOption_optionVoteCount"
>
0 votes
</span>
- </div>
</div>
</div>
</div>
<div
class="mx_PollOption_popularityBackground"
@@ -171,33 +174,34 @@
<div
class="mx_PollOption_optionText"
>
Wings
</div>
- <div>
+ <div
+ class="mx_PollOption_votesWrapper"
+ >
<div
- style="display: flex;"
+ class="mx_PollOption_facePile"
>
<div
class="mx_AccessibleButton mx_FacePile"
role="button"
- style="margin-right: 10px;"
tabindex="0"
>
<div
class="_stacked-avatars_mcap2_111"
|
Run tests:
test/unit-tests/components/views/messages/MPollBody-test.tsx#L852
expect(received).toMatchSnapshot()
Snapshot name: `MPollBody renders an undisclosed, unfinished poll 1`
- Snapshot - 12
+ Received + 4
@@ -34,18 +34,16 @@
<div
class="mx_PollOption_optionText"
>
Pizza
</div>
- <div>
<div
- style="display: flex;"
+ class="mx_PollOption_votesWrapper"
>
<span
class="mx_PollOption_optionVoteCount"
/>
- </div>
</div>
</div>
</div>
<div
class="mx_StyledRadioButton_spacer"
@@ -84,18 +82,16 @@
<div
class="mx_PollOption_optionText"
>
Poutine
</div>
- <div>
<div
- style="display: flex;"
+ class="mx_PollOption_votesWrapper"
>
<span
class="mx_PollOption_optionVoteCount"
/>
- </div>
</div>
</div>
</div>
<div
class="mx_StyledRadioButton_spacer"
@@ -134,18 +130,16 @@
<div
class="mx_PollOption_optionText"
>
Italian
</div>
- <div>
<div
- style="display: flex;"
+ class="mx_PollOption_votesWrapper"
>
<span
class="mx_PollOption_optionVoteCount"
/>
- </div>
</div>
</div>
</div>
<div
class="mx_StyledRadioButton_spacer"
@@ -184,18 +178,16 @@
<div
class="mx_PollOption_optionText"
>
Wings
</div>
- <div>
<div
- style="display: flex;"
+ class="mx_PollOption_votesWrapper"
>
<span
class="mx_PollOption_optionVoteCount"
/>
- </div>
</div>
</div>
</div>
<div
class="mx_StyledRadioButton_spacer"
at Object.toMatchSnapshot (test/unit-tests/components/views/messages/MPollBody-test.tsx:852:27)
|
Run tests:
test/unit-tests/components/views/messages/MPollBody-test.tsx#L866
expect(received).toMatchSnapshot()
Snapshot name: `MPollBody renders an undisclosed, finished poll 1`
- Snapshot - 16
+ Received + 20
@@ -24,33 +24,34 @@
<div
class="mx_PollOption_optionText"
>
Pizza
</div>
- <div>
+ <div
+ class="mx_PollOption_votesWrapper"
+ >
<div
- style="display: flex;"
+ class="mx_PollOption_facePile"
>
<div
class="mx_AccessibleButton mx_FacePile"
role="button"
- style="margin-right: 10px;"
tabindex="0"
>
<div
class="_stacked-avatars_mcap2_111"
/>
+ </div>
</div>
<span
class="mx_PollOption_optionVoteCount"
>
<div
class="mx_PollOption_winnerIcon"
/>
2 votes
</span>
- </div>
</div>
</div>
</div>
<div
class="mx_PollOption_popularityBackground"
@@ -75,30 +76,31 @@
<div
class="mx_PollOption_optionText"
>
Poutine
</div>
- <div>
+ <div
+ class="mx_PollOption_votesWrapper"
+ >
<div
- style="display: flex;"
+ class="mx_PollOption_facePile"
>
<div
class="mx_AccessibleButton mx_FacePile"
role="button"
- style="margin-right: 10px;"
tabindex="0"
>
<div
class="_stacked-avatars_mcap2_111"
/>
</div>
+ </div>
<span
class="mx_PollOption_optionVoteCount"
>
0 votes
</span>
- </div>
</div>
</div>
</div>
<div
class="mx_PollOption_popularityBackground"
@@ -123,30 +125,31 @@
<div
class="mx_PollOption_optionText"
>
Italian
</div>
- <div>
+ <div
+ class="mx_PollOption_votesWrapper"
+ >
<div
- style="display: flex;"
+ class="mx_PollOption_facePile"
>
<div
class="mx_AccessibleButton mx_FacePile"
role="button"
- style="margin-right: 10px;"
tabindex="0"
>
<div
class="_stacked-avatars_mcap2_111"
/>
</div>
+ </div>
<span
class="mx_PollOption_optionVoteCount"
>
0 votes
</span>
- </div>
</div>
</div>
</div>
<div
class="mx_PollOption_popularityBackground"
@@ -171,33 +174,34 @@
<div
class="mx_PollOption_optionText"
>
Wings
</div>
- <div>
+ <div
+ class="mx_PollOption_votesWrapper"
+ >
<div
- style="display: flex;"
+ class="mx_PollOption_facePile"
>
<div
class="mx_AccessibleButton mx_FacePile"
role="button"
- style="margin-right: 10px;"
tabindex="0"
>
<div
class="_stacked-avatars_mcap2_111"
/>
|
Run tests
Process completed with exit code 1.
|
Loading