Capture Screenshots from URLs
Using Playwright
import { test } from "@playwright/test";
import { argosScreenshot } from "@argos-ci/playwright";
const pages = [
{ name: "homepage", path: "/" },
{ name: "integrations", path: "/integrations" },
{ name: "contact", path: "/contact-us" },
{ name: "pricing", path: "/pricing" },
];
for (const { name, path } of pages) {
test(`Run Argos on ${name} (${path})`, async ({ page }) => {
await page.goto(path);
await argosScreenshot(page, name);
});
}Using Cypress
Using Puppeteer
Last updated
Was this helpful?