replace Polls history strings with Poll history (#10454)

Co-authored-by: Michael Weimann <michaelw@matrix.org>
This commit is contained in:
Kerry 2023-03-29 11:13:51 +13:00 committed by GitHub
parent f5115e047e
commit 6eda1fa6e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 15 additions and 15 deletions

View file

@ -99,7 +99,7 @@ describe("<RoomSettingsDialog />", () => {
it("displays poll history when tab clicked", () => {
const { container } = getComponent();
fireEvent.click(screen.getByText("Polls history"));
fireEvent.click(screen.getByText("Poll history"));
expect(container.querySelector(".mx_SettingsTab")).toMatchSnapshot();
});

View file

@ -74,7 +74,7 @@ NodeList [
<span
class="mx_TabbedView_tabLabel_text"
>
Polls history
Poll history
</span>
</div>,
]
@ -90,7 +90,7 @@ exports[`<RoomSettingsDialog /> poll history displays poll history when tab clic
<h2
class="mx_Heading_h2 mx_PollHistory_header"
>
Polls history
Poll history
</h2>
<div
class="mx_PollHistoryList"

View file

@ -318,7 +318,7 @@ describe("<PollHistory />", () => {
fireEvent.click(getByText("Question?"));
expect(queryByText("Polls history")).not.toBeInTheDocument();
expect(queryByText("Poll history")).not.toBeInTheDocument();
// elements from MPollBody
expect(getByText("Question?")).toMatchSnapshot();
expect(getByText("Socks")).toBeInTheDocument();
@ -394,13 +394,13 @@ describe("<PollHistory />", () => {
expect(getByText("Question?")).toBeInTheDocument();
// header not shown
expect(queryByText("Polls history")).not.toBeInTheDocument();
expect(queryByText("Poll history")).not.toBeInTheDocument();
expect(getByText("Active polls")).toMatchSnapshot();
fireEvent.click(getByText("Active polls"));
// main list header displayed again
expect(getByText("Polls history")).toBeInTheDocument();
expect(getByText("Poll history")).toBeInTheDocument();
// active filter still active
expect(getByTestId("filter-tab-PollHistory_filter-ACTIVE").firstElementChild).toBeChecked();
// list displayed

View file

@ -37,7 +37,7 @@ exports[`<PollHistory /> renders a list of active polls when there are polls in
<h2
class="mx_Heading_h2 mx_PollHistory_header"
>
Polls history
Poll history
</h2>
<div
class="mx_PollHistoryList"

View file

@ -137,13 +137,13 @@ describe("<RoomSummaryCard />", () => {
it("renders poll history option", () => {
const { getByText } = getComponent();
expect(getByText("Polls history")).toBeInTheDocument();
expect(getByText("Poll history")).toBeInTheDocument();
});
it("opens poll history dialog on button click", () => {
const { getByText } = getComponent();
fireEvent.click(getByText("Polls history"));
fireEvent.click(getByText("Poll history"));
expect(modalSpy).toHaveBeenCalledWith(PollHistoryDialog, {
room,

View file

@ -88,7 +88,7 @@ exports[`<RoomSummaryCard /> renders the room summary 1`] = `
role="button"
tabindex="0"
>
Polls history
Poll history
</div>
<div
class="mx_AccessibleButton mx_BaseCard_Button mx_RoomSummaryCard_Button mx_RoomSummaryCard_icon_export"