smoke - ignore any failure from capturing screenshot

This commit is contained in:
Benjamin Pasero 2021-09-03 09:31:01 +02:00
parent 3084de82e9
commit a3acef919f
No known key found for this signature in database
GPG key ID: E6380CC4C8219E65

View file

@ -48,7 +48,11 @@ export function afterSuite(opts: minimist.ParsedArgs) {
if (this.currentTest?.state === 'failed' && opts.screenshots) {
const name = this.currentTest!.fullTitle().replace(/[^a-z0-9\-]/ig, '_');
await app.captureScreenshot(name);
try {
await app.captureScreenshot(name);
} catch (error) {
// ignore
}
}
if (app) {