smoke - improve app lifecycle (#139693)

* smoke - make sure app is closed when `app.start` fails

* smoke - `capturePage` to fallback to active window

* smoke - more logging around remote resolving
This commit is contained in:
Benjamin Pasero
2021-12-23 16:38:54 +01:00
committed by GitHub
parent d89b167121
commit b2e79a699f
6 changed files with 39 additions and 17 deletions

View File

@@ -290,8 +290,10 @@ export class Code {
private async getActiveWindowId(): Promise<number> {
if (typeof this._activeWindowId !== 'number') {
this.logger.log('getActiveWindowId(): begin');
const windows = await this.driver.getWindowIds();
this._activeWindowId = windows[0];
this.logger.log(`getActiveWindowId(): end (windowId=${this._activeWindowId})`);
}
return this._activeWindowId;