Decreasing screenshot quality to decrease time taken for screenshot
This commit is contained in:
parent
327065f3e3
commit
45bc15eee5
1 changed files with 3 additions and 2 deletions
|
|
@ -119,8 +119,9 @@ export class BaanReserverenService {
|
|||
private async handleError() {
|
||||
await this.page
|
||||
.screenshot({
|
||||
type: 'png',
|
||||
path: `./${Date.now()}_error-screenshot.png`,
|
||||
type: 'jpeg',
|
||||
path: `./${Date.now()}_error-screenshot.jpeg`,
|
||||
quality: 50,
|
||||
})
|
||||
.catch((reason: any) =>
|
||||
this.loggerService.warn('Failed to take screenshot', { reason }),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue