Puppeteer
Integrating Argos with your Puppeteer tests to enable visual testing on your application.
Installation
2
Use in your tests
import puppeteer from "puppeteer";
import { argosScreenshot } from "@argos-ci/puppeteer";
describe("Integration test with visual testing", () => {
it("loads the homepage", async () => {
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto(TEST_URL);
await argosScreenshot(page, this.test.fullTitle());
});
});API Overview
argosScreenshot(page, name[, options])
Helper Attributes for Visual Testing
Additional Resources
Last updated
Was this helpful?