APPLITOOLS_API_KEY env variable is missing

958 Views Asked by At

APPLITOOLS_API_KEY env variable is missing. It is required to define this variable for Applitools visual tests to run successfully.

Please see the error image here

1

There are 1 best solutions below

3
On

There are two ways to prevent this.

  1. Pass the env variable using the CLI like:
export APPLITOOLS_API_KEY=<your_key> npx cypress open
  1. Create a file in your project root applitools.config.js and mention your api key like:
module.exports = {
  apiKey: 'YOUR_API_KEY',
  // ...
}

In case you don't have any API key, you can refer this article.