Fix flaky mobile registration tests (#102)
* Fix flaky mobile registration tests Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Discard changes to src/theme.ts * Add comment Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/28192/head
parent
0b3b499fc4
commit
fe402e28bb
|
@ -61,6 +61,10 @@ jest.mock("matrix-js-sdk/src/oidc/authorize", () => ({
|
||||||
completeAuthorizationCodeGrant: jest.fn(),
|
completeAuthorizationCodeGrant: jest.fn(),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
// Stub out ThemeWatcher as the necessary bits for themes are done in element-web's index.html and thus are lacking here,
|
||||||
|
// plus JSDOM's implementation of CSSStyleDeclaration has a bunch of differences to real browsers which cause issues.
|
||||||
|
jest.mock("../../../src/settings/watchers/ThemeWatcher");
|
||||||
|
|
||||||
/** The matrix versions our mock server claims to support */
|
/** The matrix versions our mock server claims to support */
|
||||||
const SERVER_SUPPORTED_MATRIX_VERSIONS = ["v1.1", "v1.5", "v1.6", "v1.8", "v1.9"];
|
const SERVER_SUPPORTED_MATRIX_VERSIONS = ["v1.1", "v1.5", "v1.6", "v1.8", "v1.9"];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue