Socket
Book a DemoInstallSign in
Socket

@buddy-works/visual-tests-cypress

Package Overview
Dependencies
Maintainers
4
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@buddy-works/visual-tests-cypress

Buddy Visual Tests Cypress Plugin

latest
npmnpm
Version
0.1.0
Version published
Maintainers
4
Created
Source

Visual Test Cypress Plugin

A Cypress plugin for performing visual testing using Buddy Works Visual Testing. This plugin allows automatic capturing of website snapshots across different screen resolutions and comparing them with reference versions to detect visual regressions.

Requirements

  • Node.js >= 20
  • Cypress >= 14.0.0

Installation

npm install -D @buddy-works/visual-tests-cypress

Setup

Add the plugin to your Cypress support file so the custom command is registered:

// cypress/support/e2e.js
import "@buddy-works/visual-tests-cypress";

Basic example

Call the command anywhere in your tests after navigating to a page:

describe("visuals", () => {
  it("homepage snapshot", () => {
    cy.visit("https://buddy.works/blog");
    cy.takeSnap("example-homepage");
  });
});

License

MIT

FAQs

Package last updated on 01 Sep 2025

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