Skip to content

Commit

Permalink
fix: 🐛 addressing percy
Browse files Browse the repository at this point in the history
  • Loading branch information
Loonz806 committed Dec 19, 2024
1 parent 0f02852 commit 4f4096b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/styles/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ button {
width: 32px;
margin-right: 16px;
}

10 changes: 9 additions & 1 deletion tests/example.spec.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { test, expect } from "@playwright/test";
const { chromium } = require("playwright");
const { AxeBuilder } = require("@axe-core/playwright");
const percySnapshot = require("@percy/playwright");

test("test", async ({ page }) => {
await page.goto("http://localhost:9000/");
await percySnapshot(page, "Setup Example ScreenShort for Percy");
try {
const results = await new AxeBuilder({ page }).analyze();
console.log(results);
Expand All @@ -20,3 +20,11 @@ test("test", async ({ page }) => {
await page.getByRole("button", { name: "-" }).click();
await page.getByText("0").click();
});

(async () => {
const browser = await chromium.launch();
const page = await browser.newPage();
await page.goto("http://localhost:9000/", { waitUntil: "networkidle" });
await percySnapshot(page, "Setup Example");
await browser.close();
})();

0 comments on commit 4f4096b

Please sign in to comment.