mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 15:01:57 +01:00
smoke(electron): wait for page navigation to commit before using driver (#157106)
* smoke(electron): wait for page navigation to commit before using driver * chore: only use window event in Electron * chore: implement load event for web * 💄 Co-authored-by: Benjamin Pasero <benjamin.pasero@gmail.com>
This commit is contained in:
@@ -135,6 +135,10 @@ export class Code {
|
||||
await this.driver.dispatchKeybinding(keybinding);
|
||||
}
|
||||
|
||||
async didFinishLoad(): Promise<void> {
|
||||
return this.driver.didFinishLoad();
|
||||
}
|
||||
|
||||
async exit(): Promise<void> {
|
||||
return measureAndLog(new Promise<void>((resolve, reject) => {
|
||||
const pid = this.mainProcess.pid!;
|
||||
|
||||
Reference in New Issue
Block a user