Port remaining Puppeteer tests over to Cypress (#9104)
* Port remaining Puppeteer tests over to Cypress * Remove puppeteer support files * Fix lifecycle matrixclientpeg setup race condition * Alternative solution to the lifecycle problem * Dismiss the notifications toast
This commit is contained in:
committed by
GitHub
parent
1e4c336fed
commit
f566c600e2
@@ -1326,11 +1326,6 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
|
||||
this.showScreenAfterLogin();
|
||||
}
|
||||
|
||||
// Will be moved to a pre-login flow as well
|
||||
if (PosthogAnalytics.instance.isEnabled() && SettingsStore.isLevelSupported(SettingLevel.ACCOUNT)) {
|
||||
this.initPosthogAnalyticsToast();
|
||||
}
|
||||
|
||||
if (SdkConfig.get("mobile_guide_toast")) {
|
||||
// The toast contains further logic to detect mobile platforms,
|
||||
// check if it has been dismissed before, etc.
|
||||
@@ -1646,6 +1641,12 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
|
||||
// we implement more settings.
|
||||
cli.setGlobalErrorOnUnknownDevices(false);
|
||||
}
|
||||
|
||||
// Cannot be done in OnLoggedIn as at that point the AccountSettingsHandler doesn't yet have a client
|
||||
// Will be moved to a pre-login flow as well
|
||||
if (PosthogAnalytics.instance.isEnabled() && SettingsStore.isLevelSupported(SettingLevel.ACCOUNT)) {
|
||||
this.initPosthogAnalyticsToast();
|
||||
}
|
||||
}
|
||||
|
||||
public showScreen(screen: string, params?: {[key: string]: any}) {
|
||||
|
||||
Reference in New Issue
Block a user