Mock tests: retry app launch until DB initializes

This commit is contained in:
trevor-signal 2023-10-30 15:27:29 -04:00 committed by GitHub
parent 6bd802a03d
commit 47aff178da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 24 additions and 24 deletions

View file

@ -81,6 +81,10 @@ export class App extends EventEmitter {
return this.waitForEvent('provisioning-url');
}
public async waitForDbInitialized(): Promise<void> {
return this.waitForEvent('db-initialized');
}
public async waitUntilLoaded(): Promise<AppLoadedInfoType> {
return this.waitForEvent('app-loaded');
}