{"_id":"@buddy-works/visual-tests-playwright","_rev":"4-48525e530d681800b985ba008b8319e2","name":"@buddy-works/visual-tests-playwright","dist-tags":{"latest":"1.0.1"},"versions":{"0.1.0":{"name":"@buddy-works/visual-tests-playwright","version":"0.1.0","keywords":["playwright","visual testing","regression"],"author":{"name":"Bartosz Wróbel"},"license":"MIT","_id":"@buddy-works/visual-tests-playwright@0.1.0","maintainers":[{"name":"mical","email":"michal83h@gmail.com"},{"name":"bylek","email":"bylek77@gmail.com"},{"name":"bartoszwrobel591","email":"bartoszwrobel591@gmail.com"},{"name":"sztwiorok","email":"raphael@buddy.works"}],"dist":{"shasum":"bdb88fb26e20a277f2f1391005e965552c681de6","tarball":"https://registry.npmjs.org/@buddy-works/visual-tests-playwright/-/visual-tests-playwright-0.1.0.tgz","fileCount":7,"integrity":"sha512-UcyNvY4v6zG6rtgO/obliK7DH5uoWIUkjjVcKM/FgeU4GXJCvI6yHnpAo34B+rsE7F0hm4K/8UgbMrwEFoZFYw==","signatures":[{"sig":"MEUCIH4LYiHePRYpvuAuH9VbWg44TBLbucUTPuSc/ieIgFACAiEArZ/K5jEF6W3v96Sxw1ezMYWEIhpMXlds0tsvixcZYQs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15986},"main":"./dist/index.js","type":"module","_from":"file:buddy-works-visual-tests-playwright-0.1.0.tgz","engines":{"node":">=20"},"exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"lint":"eslint \"**/*\"","build":"node build.js","format":"prettier --write \"**/*.{js,ts,json,md}\""},"_npmUser":{"name":"bartoszwrobel591","email":"bartoszwrobel591@gmail.com"},"_resolved":"/tmp/380e4686e222d6c2a63838d9b9cc392c/buddy-works-visual-tests-playwright-0.1.0.tgz","_integrity":"sha512-UcyNvY4v6zG6rtgO/obliK7DH5uoWIUkjjVcKM/FgeU4GXJCvI6yHnpAo34B+rsE7F0hm4K/8UgbMrwEFoZFYw==","_npmVersion":"10.8.2","description":"Buddy Visual Test Playwright Plugin","directories":{},"_nodeVersion":"20.19.4","_hasShrinkwrap":false,"devDependencies":{"eslint":"9.22.0","esbuild":"0.25.1","prettier":"3.5.3","@eslint/js":"9.22.0","typescript":"5.8.2","@playwright/test":"1.51.1","typescript-eslint":"8.26.1","eslint-plugin-unicorn":"57.0.0","esbuild-node-externals":"1.18.0","eslint-config-prettier":"10.1.1","eslint-plugin-prettier":"5.2.3","@typescript-eslint/parser":"8.26.1","@typescript-eslint/eslint-plugin":"8.26.1"},"_npmOperationalInternal":{"tmp":"tmp/visual-tests-playwright_0.1.0_1756732024060_0.08591847283918974","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@buddy-works/visual-tests-playwright","version":"1.0.0","keywords":["playwright","regression","visual testing"],"author":{"name":"Bartosz Wróbel"},"license":"MIT","_id":"@buddy-works/visual-tests-playwright@1.0.0","maintainers":[{"name":"mical","email":"michal83h@gmail.com"},{"name":"bylek","email":"bylek77@gmail.com"},{"name":"bartoszwrobel591","email":"bartoszwrobel591@gmail.com"},{"name":"sztwiorok","email":"raphael@buddy.works"}],"dist":{"shasum":"d8cdb12e3cb23b5cd5633e53daeeb9705564b10b","tarball":"https://registry.npmjs.org/@buddy-works/visual-tests-playwright/-/visual-tests-playwright-1.0.0.tgz","fileCount":10,"integrity":"sha512-wQsg2Rl+KIkX9MXnW5vaZ/3lBdIBKeoFG4ozz0t7GvgG2gZyta04hW1X87x61d3UqFcqXNYjiIBjyMvmq2pgBA==","signatures":[{"sig":"MEMCH30dU9j4n+NvULEdyMi3I3HzaT4HiiW0mK2LEhgCj0ECICeuDsyPoz+o985EnvUag7m+YA1s+OfsJv2XUPo1EB5S","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26185},"main":"./dist/index.cjs","type":"module","types":"./dist/types/index.d.cts","engines":{"node":">=20"},"exports":{".":{"import":{"types":"./dist/types/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/types/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"8738f6880a255ac7fccba2e1ac7dfcc4f2f0c928","scripts":{"lint":"oxlint","build":"node build.js","format":"oxfmt","typecheck":"tsc --noEmit"},"_npmUser":{"name":"bylek","email":"bylek77@gmail.com","approver":{"name":"bylek","email":"bylek77@gmail.com"}},"_npmVersion":"11.19.0","description":"Buddy Visual Test Playwright Plugin","directories":{},"_nodeVersion":"26.7.0","_hasShrinkwrap":false,"devDependencies":{"oxfmt":"0.64.0","oxlint":"1.79.0","esbuild":"0.28.2","typescript":"7.0.2","@types/node":"^20.19.43","@playwright/test":"1.62.1","esbuild-node-externals":"2.0.0"},"peerDependencies":{"@playwright/test":">=1.30.0"},"_npmOperationalInternal":{"tmp":"tmp/visual-tests-playwright_1.0.0_1787655578140_0.35961443945462546","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@buddy-works/visual-tests-playwright","version":"1.0.1","keywords":["playwright","playwright-plugin","regression","visual-regression","visual testing","visual-testing","screenshot","screenshot-testing","image-comparison","image-diff","ui-testing","e2e","e2e-testing","testing","test-automation","ci","buddy","buddy-works"],"author":{"name":"Bartosz Wróbel"},"license":"MIT","_id":"@buddy-works/visual-tests-playwright@1.0.1","maintainers":[{"name":"mical","email":"michal83h@gmail.com"},{"name":"bylek","email":"bylek77@gmail.com"},{"name":"bartoszwrobel591","email":"bartoszwrobel591@gmail.com"},{"name":"sztwiorok","email":"raphael@buddy.works"}],"dist":{"shasum":"11a88fb2976dfb39e592a5b5aa2d0e3de84331f4","tarball":"https://registry.npmjs.org/@buddy-works/visual-tests-playwright/-/visual-tests-playwright-1.0.1.tgz","fileCount":10,"integrity":"sha512-QZWOaI9cTwuNupo1OZlkUXFeukk04Schp5qPg8ozRfCeBuLz5nmsQ8JRzI/qcL3SplOThJmmUw4MmH5jbfTgdA==","signatures":[{"sig":"MEYCIQCQXLnd+Qg8a6bnuu+QB+Xm7BosxgB60yr8BEw1ElpuOgIhANOjjGifhp0C9HhOWt9jjajIOHOvvXbSCNOuPwLBRCHS","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26471},"main":"./dist/index.cjs","type":"module","types":"./dist/types/index.d.cts","engines":{"node":">=20"},"exports":{".":{"import":{"types":"./dist/types/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/types/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"bfc4dc50a4157177a9122e5ed47289facc5a8020","scripts":{"lint":"oxlint","build":"node build.js","format":"oxfmt","typecheck":"tsc --noEmit"},"_npmUser":{"name":"bylek","email":"bylek77@gmail.com","approver":{"name":"bylek","email":"bylek77@gmail.com"}},"_npmVersion":"11.19.0","description":"Buddy Visual Test Playwright Plugin","directories":{},"_nodeVersion":"26.7.0","_hasShrinkwrap":false,"devDependencies":{"oxfmt":"0.64.0","oxlint":"1.79.0","esbuild":"0.28.2","typescript":"7.0.2","@types/node":"^20.19.43","@playwright/test":"1.62.1","esbuild-node-externals":"2.0.0"},"peerDependencies":{"@playwright/test":">=1.30.0"},"_npmOperationalInternal":{"tmp":"tmp/visual-tests-playwright_1.0.1_1787656223553_0.3425909586972009","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2025-09-01T13:07:03.929Z","modified":"2026-09-02T06:47:20.508Z","0.1.0":"2025-09-01T13:07:04.252Z","1.0.0":"2026-08-25T10:59:38.239Z","1.0.1":"2026-08-25T11:10:23.638Z"},"author":{"name":"Bartosz Wróbel"},"license":"MIT","keywords":["playwright","playwright-plugin","regression","visual-regression","visual testing","visual-testing","screenshot","screenshot-testing","image-comparison","image-diff","ui-testing","e2e","e2e-testing","testing","test-automation","ci","buddy","buddy-works"],"description":"Buddy Visual Test Playwright Plugin","maintainers":[{"email":"michal83h@gmail.com","name":"mical"},{"email":"bylek77@gmail.com","name":"bylek"},{"email":"bartoszwrobel591@gmail.com","name":"bartoszwrobel591"},{"email":"mganczarczyk@proton.me","name":"mganczarczyk"},{"email":"raphael@buddy.works","name":"sztwiorok"}],"readme":"# Visual Test Playwright Plugin\n\nA Playwright 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.\n\n## Requirements\n\n- **Node.js** `>=20`\n- **[bdy CLI](https://www.npmjs.com/package/bdy)** — tests must be run through the CLI within a visual testing session, e.g. `bdy tests visual session create \"playwright test\"`\n\n## Installation\n\n```bash\nnpm install @buddy-works/visual-tests-playwright\n```\n\n## Usage\n\n### ESM (`import`)\n\n```typescript\nimport { test as base } from \"@playwright/test\";\nimport withVisualTestPluginFixture from \"@buddy-works/visual-tests-playwright\";\n\nconst test = withVisualTestPluginFixture(base);\n\ntest(\"homepage visual test\", async ({ page, visualTestPlugin }) => {\n  await page.goto(\"https://example.com\");\n\n  await visualTestPlugin.takeSnap(page, \"homepage\", {\n    devices: [{ viewport: { width: 1366, height: 768 } }],\n    colorScheme: \"DARK\",\n    cloneCookies: true,\n  });\n});\n```\n\n### CommonJS (`require`)\n\n```javascript\nconst { test: base } = require(\"@playwright/test\");\nconst { default: withVisualTestPluginFixture } = require(\"@buddy-works/visual-tests-playwright\");\n\nconst test = withVisualTestPluginFixture(base);\n\ntest(\"homepage visual test\", async ({ page, visualTestPlugin }) => {\n  await page.goto(\"https://example.com\");\n\n  await visualTestPlugin.takeSnap(page, \"homepage\", {\n    devices: [{ viewport: { width: 1366, height: 768 } }],\n    colorScheme: \"DARK\",\n    cloneCookies: true,\n  });\n});\n```\n\n## Examples\n\nExample usage of the plugin can be found in the `examples/` directory:\n\n```bash\n# Install dependencies\npnpm i\n# Build plugin\npnpm run build\n# Create link for plugin\npnpm link\n# Go to examples folder\ncd examples\n# Link plugin\npnpm link @buddy-works/playwright\n# Install examples dependencies\npnpm i\n# Add enviroment variables with token\nexport BUDDY_VT_TOKEN=****\n# Run an example\npnpm run test\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}