element-web/test/components/views/elements
Kerry 18ab325eaf
Poll history - filter by active or ended (#10098)
* wip

* remove dupe

* use poll model relations in all cases

* update mpollbody tests to use poll instance

* update poll fetching login in pinned messages card

* add pinned polls to room polls state

* add spinner while relations are still loading

* handle no poll in end poll dialog

* strict errors

* render a poll body that errors for poll end events

* add fetching logic to pollend tile

* extract poll testing utilities

* test mpollend

* strict fix

* more strict fix

* strict fix for forwardref

* add filter component

* update poll test utils

* add unstyled filter tab group

* filtertabgroup snapshot

* lint

* update test util setupRoomWithPollEvents to allow testing multiple polls in one room

* style filter tabs

* test error message for past polls

* sort polls list by latest

* move FilterTabGroup into generic components

* comments

* Update src/components/views/dialogs/polls/types.ts

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

---------

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2023-02-13 09:19:45 +13:00
..
__snapshots__ Poll history - filter by active or ended (#10098) 2023-02-13 09:19:45 +13:00
AccessibleButton-test.tsx Migrate AccessibleButton-test to RTL (#9833) 2022-12-28 10:40:34 +00:00
AppTile-test.tsx Migrate AppTile-Test to RTL (#9838) 2022-12-30 10:33:10 +00:00
EventListSummary-test.tsx Fix wrongly grouping 3pid invites into a single repeated transition (#10087) 2023-02-07 10:09:46 +00:00
ExternalLink-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
Field-test.tsx Add edit and remove actions to link in RTE (#9864) 2023-01-11 10:10:55 +00:00
FilterDropdown-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
FilterTabGroup-test.tsx Poll history - filter by active or ended (#10098) 2023-02-13 09:19:45 +13:00
InteractiveTooltip-test.ts
LabelledCheckbox-test.tsx Migrate LabelledCheckbox-test to react-testing-library (#10115) 2023-02-09 12:23:34 +01:00
LearnMore-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
PollCreateDialog-test.tsx Use js-sdk imports for poll event types instead of events-sdk (#9904) 2023-01-13 10:02:33 -07:00
PowerSelector-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
ProgressBar-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
QRCode-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
ReplyChain-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
StyledRadioGroup-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
SyntaxHighlight-test.tsx Fix error when viewing source of redacted events (#9914) 2023-01-15 16:22:59 +00:00
TooltipTarget-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00