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 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; | ||||
|  |  | |||
|  | @ -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(() => { | ||||
|  |  | |||
|  | @ -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", | ||||
|     ); | ||||
| 
 | ||||
|  |  | |||
|  | @ -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(); | ||||
|     }); | ||||
|  |  | |||
|  | @ -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()); | ||||
|  |  | |||
|  | @ -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({ | ||||
|  |  | |||
|  | @ -220,7 +220,6 @@ describe("VoiceBroadcastPlayback", () => { | |||
|     }; | ||||
| 
 | ||||
|     filterConsole( | ||||
|         "Starting load of AsyncWrapper for modal", | ||||
|         // expected for some tests
 | ||||
|         "Unable to load broadcast playback", | ||||
|     ); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Kerry
						Kerry