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:
Michael Telatynski 2022-07-29 15:03:25 +01:00 committed by GitHub
parent 1e4c336fed
commit f566c600e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
60 changed files with 105 additions and 4524 deletions

View file

@ -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}) {