Socket
Book a DemoInstallSign in
Socket

@visual-regression-tracker/agent-codeceptjs

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@visual-regression-tracker/agent-codeceptjs

Custom helper to integrate CondeceptJS with Visual Regression Tracker

latest
Source
npmnpm
Version
4.6.1
Version published
Maintainers
1
Created
Source

Native integration for CodeceptJS with Visual Regression Tracker

Codacy Badge

Npm

https://www.npmjs.com/package/@visual-regression-tracker/agent-codeceptjs

Install

Add package

npm install @visual-regression-tracker/agent-codeceptjs

Add helper

Update codeceptjs.conf.js

helpers: {
    VisualRegressionTrackerHelper: {
        require: "@visual-regression-tracker/agent-codeceptjs",

        // URL where backend is running
        // Required
        apiUrl: "http://localhost:4200",

        // Project name or ID
        // Required
        project: "Default project",

        // User apiKey
        // Required
        apiKey: "tXZVHX0EA4YQM1MGDD",

        // Current git branch
        // Required
        branchName: "develop",

        // Log errors instead of throwing exceptions
        // Optional - default false
        enableSoftAssert: true,

        // Unique ID related to one CI build
        // Optional - default null
        ciBuildId: "SOME_UNIQUE_ID",
    },
}

Update TypeScript Definitions

More on this in official COdeceptJS (docs)[https://codecept.io/commands/#typescript-definitions]

npx codeceptjs def

Usage

Setup

I.vrtStart();

Teardown

I.vrtStop();

Assert

// default
I.vrtTrack("Default");

// With additional options
I.vrtTrack("Additional options", {
  os: "windows",
  device: "device",
  browser: "chrome",
  diffTollerancePercent: 1,
  ignoreAreas: [
    {
      x: 10,
      y: 10,
      width: 200,
      height: 200,
    },
  ],
});

Examples

https://github.com/Visual-Regression-Tracker/examples-js

Keywords

codeceptJS

FAQs

Package last updated on 06 Dec 2020

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.