smoke - better exit application handling

This commit is contained in:
Benjamin Pasero
2021-08-05 09:05:17 +02:00
parent 801bbff282
commit 6c3bb99c63
5 changed files with 17 additions and 9 deletions

View File

@@ -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> {