Migrate more strings to translation keys (#11671)
This commit is contained in:
parent
13aed62a91
commit
4d0d024e86
125 changed files with 7066 additions and 6607 deletions
|
@ -158,7 +158,7 @@ exports[`PublicRoomResultDetails Public room results 5`] = `
|
|||
class="mx_SpotlightDialog_result_publicRoomName"
|
||||
id="label-id"
|
||||
>
|
||||
Unnamed room
|
||||
Unnamed Room
|
||||
</span>
|
||||
<span
|
||||
class="mx_SpotlightDialog_result_publicRoomAlias"
|
||||
|
|
|
@ -136,7 +136,7 @@ describe("<DeviceDetailHeading />", () => {
|
|||
await flushPromisesWithFakeTimers();
|
||||
|
||||
// error message displayed
|
||||
expect(queryByText("Failed to set display name")).toBeTruthy();
|
||||
expect(queryByText("Failed to set session name")).toBeTruthy();
|
||||
// spinner removed
|
||||
expect(container.getElementsByClassName("mx_Spinner").length).toBeFalsy();
|
||||
|
||||
|
|
|
@ -159,7 +159,7 @@ describe("<GeneralUserSettingsTab />", () => {
|
|||
);
|
||||
render(getComponent());
|
||||
|
||||
expect(screen.queryByText("Deactivate account")).not.toBeInTheDocument();
|
||||
expect(screen.queryByText("Deactivate Account")).not.toBeInTheDocument();
|
||||
expect(SettingsStore.getValue).toHaveBeenCalledWith(UIFeature.Deactivate);
|
||||
});
|
||||
it("should not render section when account is managed externally", async () => {
|
||||
|
@ -177,7 +177,7 @@ describe("<GeneralUserSettingsTab />", () => {
|
|||
|
||||
await flushPromises();
|
||||
|
||||
expect(screen.queryByText("Deactivate account")).not.toBeInTheDocument();
|
||||
expect(screen.queryByText("Deactivate Account")).not.toBeInTheDocument();
|
||||
});
|
||||
it("should render section when account deactivation feature is enabled", () => {
|
||||
jest.spyOn(SettingsStore, "getValue").mockImplementation(
|
||||
|
@ -185,7 +185,7 @@ describe("<GeneralUserSettingsTab />", () => {
|
|||
);
|
||||
render(getComponent());
|
||||
|
||||
expect(screen.getByText("Deactivate account").parentElement!).toMatchSnapshot();
|
||||
expect(screen.getByText("Deactivate Account", { selector: "h2" }).parentElement!).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -1279,7 +1279,7 @@ describe("<SessionManagerTab />", () => {
|
|||
|
||||
await flushPromises();
|
||||
|
||||
expect(logSpy).toHaveBeenCalledWith("Error setting session display name", error);
|
||||
expect(logSpy).toHaveBeenCalledWith("Error setting device name", error);
|
||||
|
||||
// error displayed
|
||||
expect(getByTestId("device-rename-error")).toBeTruthy();
|
||||
|
|
|
@ -237,7 +237,7 @@ exports[`<GeneralUserSettingsTab /> deactive account should render section when
|
|||
<h2
|
||||
class="mx_Heading_h3"
|
||||
>
|
||||
Deactivate account
|
||||
Deactivate Account
|
||||
</h2>
|
||||
<div
|
||||
class="mx_SettingsSection_subSections"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue