Socket
Socket
Sign inDemoInstall

testcafe-browser-provider-chromejpeg

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    testcafe-browser-provider-chromejpeg

TestCafe provider for Chrome with JPEG screenshot support.


Version published
Weekly downloads
4
increased by33.33%
Maintainers
1
Install size
3.45 kB
Created
Weekly downloads
 

Readme

Source

TestCafe browser provider for Chrome with JPEG screenshot support

Background

Solution

  • Using JPEG format in Chrome and ignoring TestCafe's postprocessing significantly improves performance.
  • JPEG quality is set 100 to minimise the artifacts. Artifacts should not matter much for JPEG to JPEG comparison on the same platform. The comparison should be always done on the same environment (e.g. in Docker).
  • Fragment screenshots are not supported.

Usage

Install:

npm install testcafe-browser-provider-chromejpeg

Run:

testcafe chromejpeg:chrome my-test.js

Known issues

Due to TestCafe being unable to process JPEGs, the following warning is expected at the end of test execution.

 Warnings (1):
 --
  Was unable to take a screenshot due to an error.

  Error: Invalid file signature
      at module.exports.Parser._parseSignature
      ...

Keywords

FAQs

Last updated on 19 Jan 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc