[Feature] - Possibility to reduce sizes of screenshots and trace files
Problem: Currently, we are exploring solutions to control the size of attachments generated by Playwright, aiming to stay within the constraints of artifact limits in GitLab pipelines. On our CI/CD, strict limits on artifact sizes pose a challenge, and even with significant restrictions on when we generate traces and screenshots, we still find ourselves exceeding these limits.
Proposal: It would be immensely beneficial for me to have the ability to minimize attachments generated by Playwright through configurable options:
- Screenshots:
Introduce a compression level option for screenshot attachments, akin to the functionality in the Node library Sharp.
- Trace:
Implement a compression level option for trace attachments, similar to the approach in the Node library Sharp. Provide the ability to limit the data collected by the trace report.