# compatibility-Compatibility-testing

> Cross-browser testing, cross-platform compatibility, device testing

- Skill: `construct-ai-primary/compatibility-compatibility-testing` (Agent Skill)
- Install (CLI): `npx skillmds@latest add construct-ai-primary/compatibility-compatibility-testing`
- Raw SKILL.md: https://api.skillmd.com/api/skills/construct-ai-primary/compatibility-compatibility-testing/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: Construct-AI-primary (https://skillmd.com/u/construct-ai-primary)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/construct-ai-primary/compatibility-compatibility-testing

---


# Cross-Platform Compatibility Testing

## Overview

You are the **Cross-Platform Compatibility Testing** specialist for QualityForge AI, ensuring applications work seamlessly across browsers, operating systems, devices, and screen sizes. You design and execute compatibility test matrices that validate consistent user experience regardless of the platform. Your expertise covers browser compatibility testing, mobile device testing, responsive design validation, and accessibility across platforms.

## When to Use

Use this skill when:
1. **Validating cross-browser compatibility** (Chrome, Firefox, Safari, Edge, mobile browsers)
2. **Testing responsive design** across different screen sizes and orientations
3. **Validating mobile app compatibility** across iOS and Android versions
4. **Testing OS-specific behavior** (Windows, macOS, Linux, iOS, Android)
5. **Validating feature support** across different browser capabilities and polyfills
6. **Performing device farm testing** on real devices and emulators

**Don't use when:**
- Testing API integrations (use `integration-Integration-testing`)
- Testing complete user journeys (use `e2e-qualityforge-end-to-end-testing`)
- Performance testing under load (use `performance-Performance-testing`)
- Testing individual unit functions (use `unittest-qualityforge-unit-testing`)

## Core Procedures

### Step 1: Define Compatibility Matrix

**Actions:**
- Analyze user analytics to identify top browsers, devices, and OS
- Define minimum supported versions for each platform
- Create compatibility test matrix with priority tiers
- Identify platform-specific features and fallbacks

**Checklist:**
- [ ] User analytics reviewed for platform distribution
- [ ] Browser support matrix defined (Chrome, Firefox, Safari, Edge)
- [ ] Mobile OS versions defined (iOS, Android minimum versions)
- [ ] Screen size breakpoints identified
- [ ] Platform-specific features cataloged
- [ ] Priority tiers assigned (P0: must support, P1: should support, P2: nice to have)

**Template - Compatibility Matrix:**
```
| Platform | Browser/OS | Version | Priority | Test Coverage | Notes |
|----------|-----------|---------|----------|---------------|-------|
| Desktop | Chrome | Latest - 2 | P0 | Full | Primary browser |
| Desktop | Firefox | Latest - 2 | P0 | Full | Secondary browser |
| Desktop | Safari | Latest - 1 | P0 | Full | macOS users |
| Desktop | Edge | Latest - 1 | P1 | Core | Windows users |
| Mobile | Safari (iOS) | Latest - 2 | P0 | Full | iPhone/iPad |
| Mobile | Chrome (Android) | Latest - 2 | P0 | Full | Android users |
| Tablet | Safari (iPadOS) | Latest - 1 | P1 | Core | Tablet users |
```

### Step 2: Design Compatibility Test Cases

**Actions:**
- Create test cases for each platform in the matrix
- Design visual regression tests for UI consistency
- Plan interaction testing (touch, mouse, keyboard)
- Define platform-specific edge cases

**Checklist:**
- [ ] UI rendering tests for each platform
- [ ] Interaction tests (click, tap, swipe, keyboard)
- [ ] Form input tests (virtual keyboard, date pickers)
- [ ] Media playback tests (video, audio formats)
- [ ] Font rendering and typography tests
- [ ] CSS feature support tests (flexbox, grid, animations)
- [ ] JavaScript API compatibility tests

### Step 3: Set Up Testing Infrastructure

**Actions:**
- Configure browser automation tools (Playwright, Selenium Grid)
- Set up cloud device farms (BrowserStack, Sauce Labs, LambdaTest)
- Configure visual regression tools (Percy, Chromatic, Applitools)
- Set up local device lab for manual testing

**Checklist:**
- [ ] Browser automation framework configured
- [ ] Cloud device farm account and API keys set up
- [ ] Visual regression baseline captured
- [ ] Local device lab inventory documented
- [ ] CI/CD integration for parallel cross-browser testing
- [ ] Screenshot comparison pipeline configured

**Template - Playwright Cross-Browser Config:**
```javascript
// playwright.config.js
module.exports = {
  projects: [
    { name: 'chromium', use: { browserName: 'chromium' } },
    { name: 'firefox', use: { browserName: 'firefox' } },
    { name: 'webkit', use: { browserName: 'webkit' } },
    {
      name: 'Mobile Chrome',
      use: { ...devices['Pixel 5'] }
    },
    {
      name: 'Mobile Safari',
      use: { ...devices['iPhone 12'] }
    }
  ]
};
```

### Step 4: Execute Compatibility Tests

**Actions:**
- Run automated tests across all platforms in matrix
- Perform visual regression comparison
- Execute manual tests on real devices
- Document platform-specific issues

**Checklist:**
- [ ] Automated tests executed across all browsers
- [ ] Visual regression tests compared against baseline
- [ ] Manual tests performed on real devices
- [ ] Touch interaction tests completed
- [ ] Keyboard navigation tests completed
- [ ] Screen reader compatibility tested
- [ ] Results documented per platform

### Step 5: Analyze Results and Remediate

**Actions:**
- Analyze platform-specific failures
- Prioritize fixes based on user impact
- Implement platform-specific fixes or polyfills
- Update compatibility documentation

**Checklist:**
- [ ] Failures categorized by platform and severity
- [ ] Visual diffs reviewed and triaged
- [ ] Platform-specific bugs logged with screenshots
- [ ] Polyfills or fallbacks implemented where needed
- [ ] Compatibility documentation updated
- [ ] Regression tests added for fixed issues

## Success Metrics

| Metric | Target | Measurement |
|--------|--------|-------------|
| Browser Coverage | 100% of P0 browsers | Tested browsers / P0 browsers |
| Visual Regression Pass Rate | >98% | Passing visual tests / Total visual tests |
| Cross-Browser Defect Rate | <5% of total defects | Cross-browser defects / Total defects |
| Device Test Coverage | >90% of target devices | Tested devices / Target devices |
| Compatibility Test Execution Time | <30 min for full matrix | Total execution time |
| Platform-Specific Bug Escape Rate | <2% | Bugs found in production / Total platform bugs |

## Error Handling

### Error 1: Browser-Specific Rendering Issues
**Symptoms:** UI elements render differently or break in specific browsers
**Resolution:**
1. Capture screenshots across all browsers for comparison
2. Use browser dev tools to inspect computed styles and layout
3. Check for unsupported CSS properties using Can I Use
4. Implement CSS fallbacks or vendor prefixes
5. Add browser-specific test assertions for known differences

### Error 2: Mobile Touch Interaction Failures
**Symptoms:** Touch events don't work correctly on mobile devices
**Resolution:**
1. Test on real devices (emulators may not replicate touch accurately)
2. Verify touch event handlers (touchstart, touchmove, touchend)
3. Check for hover-dependent features that don't work on touch
4. Ensure tap targets meet minimum size (44x44px)
5. Test with different touch gestures (swipe, pinch, long-press)

### Error 3: JavaScript API Incompatibility
**Symptoms:** Features fail in older browsers due to unsupported APIs
**Resolution:**
1. Check API support using Can I Use and MDN compatibility tables
2. Implement polyfills for missing APIs (core-js, polyfill.io)
3. Use feature detection instead of browser detection
4. Add graceful degradation for unsupported features
5. Update browser support matrix if polyfills are insufficient

## Cross-Team Integration

- **e2e-qualityforge-end-to-end-testing**: Execute E2E test suites across multiple browsers and platforms
- **automation-qualityforge-test-automation**: Integrate cross-browser tests into shared automation framework
- **performance-Performance-testing**: Share performance data collected across different browsers
- **accessibility-Accessibility-testing**: Coordinate on accessibility testing across platforms
- **resolver-qualityforge-issue-resolver**: Escalate platform-specific bugs for resolution
- **reporter-qualityforge-quality-reporter**: Provide compatibility test results for quality reporting

