mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-04 15:25:47 +01:00
smoke - better exit application handling
This commit is contained in:
@@ -294,7 +294,10 @@ export class Code {
|
||||
}
|
||||
|
||||
async exit(): Promise<void> {
|
||||
await this.driver.exitApplication();
|
||||
const success = await this.driver.exitApplication();
|
||||
if (success === false) {
|
||||
throw new Error('Code exit was blocked by a veto.');
|
||||
}
|
||||
}
|
||||
|
||||
async waitForTextContent(selector: string, textContent?: string, accept?: (result: string) => boolean, retryCount?: number): Promise<string> {
|
||||
|
||||
Reference in New Issue
Block a user