1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-31 13:44:28 +03:00

Use the same avatar colour when creating 1:1 DM rooms (#9850)

This commit is contained in:
Michael Weimann
2023-01-05 17:05:21 +01:00
committed by GitHub
parent ecfd1736e5
commit ab9152044c
8 changed files with 215 additions and 60 deletions

View File

@ -40,7 +40,6 @@ describe("<ForgotPassword>", () => {
let onComplete: () => void;
let onLoginClick: () => void;
let renderResult: RenderResult;
let restoreConsole: () => void;
const typeIntoField = async (label: string, value: string): Promise<void> => {
await act(async () => {
@ -63,14 +62,14 @@ describe("<ForgotPassword>", () => {
});
};
beforeEach(() => {
restoreConsole = 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",
);
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(() => {
client = stubClient();
mocked(createClient).mockReturnValue(client);
@ -87,7 +86,6 @@ describe("<ForgotPassword>", () => {
afterEach(() => {
// clean up modals
Modal.closeCurrentModal("force");
restoreConsole?.();
});
beforeAll(() => {