Markdown Converter
Agent skill for markdown-converter
- **Difficulty**: Intermediate
Sign in to like and favorite skills
Generate visual regression testing strategies, screenshot comparison tests, and responsive design validation using tools like Percy, Applitools, or BackstopJS.
Create a visual regression testing strategy for: Application: [APPLICATION_NAME] Pages to Test: [LIST_OF_PAGES] Viewports: [DESKTOP/TABLET/MOBILE_SIZES] Tool: [PERCY/APPLITOOLS/BACKSTOPJS/CHROMATIC] Generate: - List of visual test scenarios - Screenshot capture points - Baseline creation strategy - Comparison thresholds - CI/CD integration approach - Test code structure Language: [JAVASCRIPT/PYTHON/JAVA] Framework: [PLAYWRIGHT/SELENIUM/CYPRESS]
Generate visual tests for responsive design: Component/Page: [COMPONENT_NAME] Breakpoints: [LIST_BREAKPOINTS] Browsers: [CHROME/FIREFOX/SAFARI/EDGE] Create tests for: - Each breakpoint transition - Layout shifts - Image scaling - Text wrapping - Navigation changes - Hidden/visible elements Include assertions for: - Element positioning - Font sizes - Spacing/margins - Overflow handling
Create cross-browser visual comparison tests: Feature: [FEATURE_NAME] Browsers: [LIST_BROWSERS_AND_VERSIONS] Operating Systems: [WINDOWS/MAC/LINUX] Baseline Browser: [REFERENCE_BROWSER] Generate tests for: - Rendering differences - Font rendering - CSS compatibility - Layout consistency - Color accuracy - Animation behavior Tool: [BROWSERSTACK/SAUCELABS/LAMBDATEST]
Generate visual regression tests for UI components: Component Library: [LIBRARY_NAME] Components to Test: [LIST_COMPONENTS] States to Capture: [DEFAULT/HOVER/ACTIVE/DISABLED/ERROR] For each component, create tests for: - All visual states - Different prop combinations - Theme variations - Size variants - With/without content - Edge cases (long text, empty state) Tool: [STORYBOOK/CHROMATIC/PERCY]
Create automated screenshot comparison code: Tool: [BACKSTOPJS/PIXELMATCH/RESEMBLEJS] Language: [JAVASCRIPT/PYTHON] Scenarios: [LIST_SCENARIOS] Generate code for: - Baseline capture - Test screenshot capture - Pixel-by-pixel comparison - Difference highlighting - Threshold configuration - Report generation - Failure handling Include: - Setup configuration - Test scenarios - Comparison logic - Reporting format
Create CI/CD pipeline configuration for visual testing: CI Platform: [JENKINS/GITHUB_ACTIONS/GITLAB_CI/CIRCLE_CI] Visual Tool: [PERCY/APPLITOOLS/CHROMATIC] Trigger: [ON_PR/ON_COMMIT/SCHEDULED] Generate pipeline that: - Runs visual tests automatically - Compares against baseline - Fails build on visual changes - Requires manual approval for intentional changes - Uploads results/artifacts - Notifies team of failures Include: - Pipeline configuration file - Environment setup - Test execution steps - Approval workflow
[APPLICATION_NAME]: Your application or website name
E-commerce checkout flow[VIEWPORTS]: Screen sizes to test
1920x1080, 1366x768, 768x1024, 375x667[TOOL]: Visual testing tool to use
Percy, Applitools Eyes, BackstopJS[BREAKPOINTS]: Responsive design breakpoints
320px, 768px, 1024px, 1440px[COMPARISON_THRESHOLD]: Acceptable difference percentage
0.1% for strict, 1% for lenientNeed to implement visual regression testing for a redesigned dashboard using Percy and Playwright.
Create a visual regression testing strategy for: Application: Admin Dashboard Redesign Pages to Test: Dashboard Home, Analytics, User Management, Settings Viewports: 1920x1080, 1366x768, 768x1024, 375x667 Tool: Percy with Playwright Generate: - List of visual test scenarios - Screenshot capture points - Baseline creation strategy - Comparison thresholds - CI/CD integration approach - Test code structure Language: TypeScript Framework: Playwright
// percy-visual-tests.spec.ts import { test } from '@playwright/test'; import percySnapshot from '@percy/playwright'; const VIEWPORTS = [ { width: 1920, height: 1080, name: 'desktop-xl' }, { width: 1366, height: 768, name: 'desktop' }, { width: 768, height: 1024, name: 'tablet' }, { width: 375, height: 667, name: 'mobile' } ]; const PAGES = [ { url: '/dashboard', name: 'Dashboard Home' }, { url: '/analytics', name: 'Analytics' }, { url: '/users', name: 'User Management' }, { url: '/settings', name: 'Settings' } ]; test.describe('Visual Regression Tests', () => { for (const viewport of VIEWPORTS) { test.describe(`${viewport.name} viewport`, () => { test.use({ viewport: { width: viewport.width, height: viewport.height } }); for (const page of PAGES) { test(`${page.name} - ${viewport.name}`, async ({ page: playwright }) => { // Navigate to page await playwright.goto(page.url); // Wait for page to be fully loaded await playwright.waitForLoadState('networkidle'); // Take Percy snapshot await percySnapshot(playwright, `${page.name} - ${viewport.name}`, { widths: [viewport.width], minHeight: viewport.height }); }); } }); } }); // Percy configuration (.percy.yml) /* version: 2 snapshot: widths: - 375 - 768 - 1366 - 1920 min-height: 1024 percy-css: | .dynamic-content { display: none; } .timestamp { visibility: hidden; } */
The AI should provide:
Quality Indicators:
Issue: Too many false positives
Issue: Tests are slow
Issue: Baseline drift
Issue: Flaky tests
Note: Visual testing complements functional testing. Always validate both visual appearance and functionality.