@percy/playwright
Advanced tools
Comparing version 1.0.6-beta.1 to 1.0.6-beta.2
14
index.js
@@ -12,3 +12,3 @@ const utils = require('@percy/sdk-utils'); | ||
// Take a DOM snapshot and post it to the snapshot endpoint | ||
async function percySnapshot(page, name, options) { | ||
const percySnapshot = async function(page, name, options) { | ||
if (!page) throw new Error('A Playwright `page` object is required.'); | ||
@@ -43,6 +43,6 @@ if (!name) throw new Error('The `name` argument is required.'); | ||
} | ||
} | ||
}; | ||
// Takes Playwright screenshot with Automate | ||
async function percyScreenshot(page, name, options) { | ||
const percyScreenshot = async function(page, name, options) { | ||
if (!page) throw new Error('A Playwright `page` object is required.'); | ||
@@ -76,4 +76,8 @@ if (!name) throw new Error('The `name` argument is required.'); | ||
} | ||
} | ||
}; | ||
module.exports = { percySnapshot, percyScreenshot, CLIENT_INFO, ENV_INFO }; | ||
module.exports = percySnapshot; | ||
module.exports.percySnapshot = percySnapshot; | ||
module.exports.percyScreenshot = percyScreenshot; | ||
module.exports.CLIENT_INFO = CLIENT_INFO; | ||
module.exports.ENV_INFO = ENV_INFO; |
{ | ||
"name": "@percy/playwright", | ||
"description": "Playwright client library for visual testing with Percy", | ||
"version": "1.0.6-beta.1", | ||
"version": "1.0.6-beta.2", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "author": "Perceptual Inc.", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
14566
154
0