Tags
Categorize and filter screenshots by tag so you can focus a build review on the changes you care about.
Last updated
Was this helpful?
Was this helpful?
import { test } from "@playwright/test";
import { argosScreenshot } from "@argos-ci/playwright";
// Option 1: At the describe level with the @ prefix
test.describe("Homepage @desktop @homepage", () => {
// Option 2: In the test name with the @ prefix
test("homepage @desktop @homepage", async ({ page }) => {
await page.goto("/");
await argosScreenshot(page, "homepage");
});
// Option 3: As a test option
test("homepage", { tag: ["@desktop", "@homepage"] }, async ({ page }) => {
await page.goto("/");
await argosScreenshot(page, "homepage");
});
// Option 4: In the argosScreenshot options
test("homepage", async ({ page }) => {
await page.goto("/");
await argosScreenshot(page, "homepage", {
tags: ["@desktop", "@homepage"],
});
});
});it("screenshot homepage", () => {
cy.visit("http://localhost:3000/");
cy.argosScreenshot("homepage", { tags: ["@desktop", "@homepage"] });
});import puppeteer from "puppeteer";
import { argosScreenshot } from "@argos-ci/puppeteer";
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto("http://localhost:3000/");
await argosScreenshot(page, "homepage", {
tags: ["@desktop", "@homepage"],
});
await browser.close();