fix(build): Use Angular's testability API to wait for end of e2e tests
Closes #3911
This commit is contained in:
@ -42,8 +42,10 @@ export class Testability {
|
||||
return this._pendingCount;
|
||||
}
|
||||
|
||||
isStable(): boolean { return this._pendingCount == 0 && !this._isAngularEventPending; }
|
||||
|
||||
_runCallbacksIfReady(): void {
|
||||
if (this._pendingCount != 0 || this._isAngularEventPending) {
|
||||
if (!this.isStable()) {
|
||||
return; // Not ready
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user