remove old debug logging in AsyncWrapper (#10661)

pull/28217/head
Kerry 2023-04-19 19:45:27 +12:00 committed by GitHub
parent aff3bd6e32
commit 957945b356
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 2 additions and 14 deletions

View File

@ -45,9 +45,6 @@ export default class AsyncWrapper extends React.Component<IProps, IState> {
public state: IState = {};
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
.then((result) => {
if (this.unmounted) return;

View File

@ -70,8 +70,6 @@ describe("<ForgotPassword>", () => {
filterConsole(
// not implemented by js-dom https://github.com/jsdom/jsdom/issues/1937
"Not implemented: HTMLFormElement.prototype.requestSubmit",
// not of interested for this test
"Starting load of AsyncWrapper for modal",
);
beforeEach(() => {

View File

@ -104,7 +104,6 @@ describe("InviteDialog", () => {
"Error retrieving profile for userId @carol:example.com",
"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",
);

View File

@ -23,7 +23,6 @@ import userEvent from "@testing-library/user-event";
import {
clearAllModals,
createTestClient,
filterConsole,
flushPromises,
mkEvent,
mkStubRoom,
@ -94,8 +93,6 @@ describe("MessageComposer", () => {
stubClient();
const cli = createTestClient();
filterConsole("Starting load of AsyncWrapper for modal");
beforeEach(() => {
mockPlatformPeg();
});

View File

@ -37,7 +37,7 @@ describe("UnverifiedSessionToast", () => {
let client: Mocked<MatrixClient>;
let renderResult: RenderResult;
filterConsole("Starting load of AsyncWrapper for modal", "Dismissing unverified sessions: ABC123");
filterConsole("Dismissing unverified sessions: ABC123");
beforeAll(() => {
client = mocked(stubClient());

View File

@ -28,7 +28,7 @@ import {
VoiceBroadcastRecording,
VoiceBroadcastRecordingPip,
} from "../../../../src/voice-broadcast";
import { filterConsole, flushPromises, stubClient } from "../../../test-utils";
import { flushPromises, stubClient } from "../../../test-utils";
import { mkVoiceBroadcastInfoStateEvent } from "../../utils/test-utils";
import { requestMediaPermissions } from "../../../../src/utils/media/requestMediaPermissions";
import MediaDeviceHandler, { MediaDeviceKindEnum } from "../../../../src/MediaDeviceHandler";
@ -85,8 +85,6 @@ describe("VoiceBroadcastRecordingPip", () => {
});
};
filterConsole("Starting load of AsyncWrapper for modal");
beforeAll(() => {
client = stubClient();
mocked(requestMediaPermissions).mockResolvedValue({

View File

@ -220,7 +220,6 @@ describe("VoiceBroadcastPlayback", () => {
};
filterConsole(
"Starting load of AsyncWrapper for modal",
// expected for some tests
"Unable to load broadcast playback",
);