New:Socket for Asana Is Now Available.Learn more
Sign In

@snapvisor/playwright

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snapvisor/playwright

Playwright SDK for visual testing with Snapvisor.

latest
Source
npmnpm
Version
8.0.0
Version published
Weekly downloads
24
41.18%
Maintainers
1
Weekly downloads
 
Created
Source

Argos

The open source visual testing platform for AI-native engineering teams.

Official Argos Playwright integration

npm version npm dm npm dt

Capture stable Argos screenshots from your Playwright tests, and report failure screenshots and traces to Argos.

Visit the Playwright SDK documentation for guides, the API reference, and more.

Installation

npm install --save-dev @snapvisor/playwright

Usage

Set up the Argos reporter in your Playwright config:

// playwright.config.ts
import { defineConfig } from "@playwright/test";
import { createArgosReporterOptions } from "@snapvisor/playwright/reporter";

export default defineConfig({
  // ... other configuration
  reporter: [
    // Use "dot" reporter on CI, "list" otherwise (Playwright default).
    process.env.CI ? ["dot"] : ["list"],

    // Add the Argos reporter.
    [
      "@snapvisor/playwright/reporter",
      // Upload the screenshots to Argos only on CI.
      createArgosReporterOptions({ uploadToArgos: !!process.env.CI }),
    ],
  ],
});

Then capture stable screenshots with argosScreenshot in your tests:

// tests/example.spec.ts
import { test } from "@playwright/test";
import { argosScreenshot } from "@snapvisor/playwright";

test("screenshot homepage", async ({ page }) => {
  await page.goto("http://localhost:3000");
  await argosScreenshot(page, "homepage");
});

Keywords

playwright

FAQs

Package last updated on 24 Jul 2026

Related posts