mirror of https://github.com/vector-im/riot-web
remove old debug logging in AsyncWrapper (#10661)
parent
aff3bd6e32
commit
957945b356
|
@ -45,9 +45,6 @@ export default class AsyncWrapper extends React.Component<IProps, IState> {
|
||||||
public state: IState = {};
|
public state: IState = {};
|
||||||
|
|
||||||
public componentDidMount(): void {
|
public componentDidMount(): void {
|
||||||
// XXX: temporary logging to try to diagnose
|
|
||||||
// https://github.com/vector-im/element-web/issues/3148
|
|
||||||
logger.log("Starting load of AsyncWrapper for modal");
|
|
||||||
this.props.prom
|
this.props.prom
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
if (this.unmounted) return;
|
if (this.unmounted) return;
|
||||||
|
|
|
@ -70,8 +70,6 @@ describe("<ForgotPassword>", () => {
|
||||||
filterConsole(
|
filterConsole(
|
||||||
// not implemented by js-dom https://github.com/jsdom/jsdom/issues/1937
|
// not implemented by js-dom https://github.com/jsdom/jsdom/issues/1937
|
||||||
"Not implemented: HTMLFormElement.prototype.requestSubmit",
|
"Not implemented: HTMLFormElement.prototype.requestSubmit",
|
||||||
// not of interested for this test
|
|
||||||
"Starting load of AsyncWrapper for modal",
|
|
||||||
);
|
);
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|
|
@ -104,7 +104,6 @@ describe("InviteDialog", () => {
|
||||||
"Error retrieving profile for userId @carol:example.com",
|
"Error retrieving profile for userId @carol:example.com",
|
||||||
"Error retrieving profile for userId @localpart:server.tld",
|
"Error retrieving profile for userId @localpart:server.tld",
|
||||||
"Error retrieving profile for userId @localpart:server:tld",
|
"Error retrieving profile for userId @localpart:server:tld",
|
||||||
"Starting load of AsyncWrapper for modal",
|
|
||||||
"[Invite:Recents] Excluding @alice:example.org from recents",
|
"[Invite:Recents] Excluding @alice:example.org from recents",
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,6 @@ import userEvent from "@testing-library/user-event";
|
||||||
import {
|
import {
|
||||||
clearAllModals,
|
clearAllModals,
|
||||||
createTestClient,
|
createTestClient,
|
||||||
filterConsole,
|
|
||||||
flushPromises,
|
flushPromises,
|
||||||
mkEvent,
|
mkEvent,
|
||||||
mkStubRoom,
|
mkStubRoom,
|
||||||
|
@ -94,8 +93,6 @@ describe("MessageComposer", () => {
|
||||||
stubClient();
|
stubClient();
|
||||||
const cli = createTestClient();
|
const cli = createTestClient();
|
||||||
|
|
||||||
filterConsole("Starting load of AsyncWrapper for modal");
|
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
mockPlatformPeg();
|
mockPlatformPeg();
|
||||||
});
|
});
|
||||||
|
|
|
@ -37,7 +37,7 @@ describe("UnverifiedSessionToast", () => {
|
||||||
let client: Mocked<MatrixClient>;
|
let client: Mocked<MatrixClient>;
|
||||||
let renderResult: RenderResult;
|
let renderResult: RenderResult;
|
||||||
|
|
||||||
filterConsole("Starting load of AsyncWrapper for modal", "Dismissing unverified sessions: ABC123");
|
filterConsole("Dismissing unverified sessions: ABC123");
|
||||||
|
|
||||||
beforeAll(() => {
|
beforeAll(() => {
|
||||||
client = mocked(stubClient());
|
client = mocked(stubClient());
|
||||||
|
|
|
@ -28,7 +28,7 @@ import {
|
||||||
VoiceBroadcastRecording,
|
VoiceBroadcastRecording,
|
||||||
VoiceBroadcastRecordingPip,
|
VoiceBroadcastRecordingPip,
|
||||||
} from "../../../../src/voice-broadcast";
|
} from "../../../../src/voice-broadcast";
|
||||||
import { filterConsole, flushPromises, stubClient } from "../../../test-utils";
|
import { flushPromises, stubClient } from "../../../test-utils";
|
||||||
import { mkVoiceBroadcastInfoStateEvent } from "../../utils/test-utils";
|
import { mkVoiceBroadcastInfoStateEvent } from "../../utils/test-utils";
|
||||||
import { requestMediaPermissions } from "../../../../src/utils/media/requestMediaPermissions";
|
import { requestMediaPermissions } from "../../../../src/utils/media/requestMediaPermissions";
|
||||||
import MediaDeviceHandler, { MediaDeviceKindEnum } from "../../../../src/MediaDeviceHandler";
|
import MediaDeviceHandler, { MediaDeviceKindEnum } from "../../../../src/MediaDeviceHandler";
|
||||||
|
@ -85,8 +85,6 @@ describe("VoiceBroadcastRecordingPip", () => {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
filterConsole("Starting load of AsyncWrapper for modal");
|
|
||||||
|
|
||||||
beforeAll(() => {
|
beforeAll(() => {
|
||||||
client = stubClient();
|
client = stubClient();
|
||||||
mocked(requestMediaPermissions).mockResolvedValue({
|
mocked(requestMediaPermissions).mockResolvedValue({
|
||||||
|
|
|
@ -220,7 +220,6 @@ describe("VoiceBroadcastPlayback", () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
filterConsole(
|
filterConsole(
|
||||||
"Starting load of AsyncWrapper for modal",
|
|
||||||
// expected for some tests
|
// expected for some tests
|
||||||
"Unable to load broadcast playback",
|
"Unable to load broadcast playback",
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue