Visual regression tests development for website (Percy)

Our company is engaged in the development, support and maintenance of sites of any complexity. From simple one-page sites to large-scale cluster systems built on micro services. Experience of developers is confirmed by certificates from vendors.
Development and maintenance of all types of websites:
Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Our competencies:
Development stages
Latest works
  • image_website-b2b-advance_0.png
    B2B ADVANCE company website development
    1212
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1161
  • image_websites_belfingroup_462_0.webp
    Website development for BELFINGROUP
    852
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1041
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    822
  • image_bitrix-bitrix-24-1c_fixper_448_0.png
    Website development for FIXPER company
    815

Visual Regression Testing for Websites (Percy)

Percy (Browserstack) is a cloud platform for visual regression testing. Unlike Chromatic, Percy is not tied to Storybook and integrates directly with Playwright, Cypress, Selenium. Suitable for testing entire pages, not just components.

Installation with Playwright

npm install -D @percy/cli @percy/playwright

Basic Integration

// tests/visual/homepage.spec.ts
import { test } from '@playwright/test';
import percySnapshot from '@percy/playwright';

test('homepage visual snapshot', async ({ page }) => {
    await page.goto('/');
    await page.waitForLoadState('networkidle');

    await percySnapshot(page, 'Homepage');
});

test('product page snapshots', async ({ page }) => {
    await page.goto('/products/macbook-pro');
    await percySnapshot(page, 'Product Page - Default');

    // Open gallery
    await page.click('[data-cy="gallery-btn"]');
    await percySnapshot(page, 'Product Page - Gallery Open');
});

test('responsive snapshots', async ({ page }) => {
    await page.goto('/');

    // Desktop
    await page.setViewportSize({ width: 1280, height: 900 });
    await percySnapshot(page, 'Homepage Desktop');

    // Mobile
    await page.setViewportSize({ width: 375, height: 812 });
    await percySnapshot(page, 'Homepage Mobile');
});

Cypress Integration

npm install -D @percy/cli @percy/cypress
// cypress/support/e2e.ts
import '@percy/cypress';

// cypress/e2e/visual.cy.ts
describe('Visual tests', () => {
    it('checkout page', () => {
        cy.visit('/checkout');
        cy.percySnapshot('Checkout Page');

        cy.get('[data-cy="add-coupon"]').click();
        cy.percySnapshot('Checkout Page - Coupon Input Open');
    });
});

Running Tests

# Set Percy token
export PERCY_TOKEN=your_token

# Run with Playwright
percy exec -- playwright test tests/visual/

# Run with Cypress
percy exec -- cypress run --spec "cypress/e2e/visual.cy.ts"

GitHub Actions

name: Visual Tests
on: [push, pull_request]

jobs:
  percy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: npm ci
      - run: npx playwright install chromium

      - name: Percy Visual Tests
        run: percy exec -- playwright test tests/visual/
        env:
          PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}

Percy vs Chromatic

Parameter Percy Chromatic
Integration Playwright, Cypress, Selenium Storybook
Tests Full pages Components in isolation
Cost Paid from $0 (limited Free) Free for open source
Multi-browser Yes (Chrome + Firefox) Chromium

Snapshot Configuration

// .percy.yml
version: 2
snapshot:
  widths: [375, 768, 1280, 1920]
  min-height: 1024
  enable-javascript: true
  percyCSS: |
    /* Freeze dynamic elements */
    .timestamp, .live-clock { visibility: hidden; }
    video { display: none !important; }
    * { animation: none !important; transition: none !important; }

Implementation Timeline

Percy setup + writing visual tests for 20–30 pages: 3–5 days.