Cross-browser testing: which browsers are worth covering?
Updated:
Cross-browser testing verifies that a website works in the browsers and on the devices your customers use. The goal is not to run every test in every version that exists. You need a sensible matrix that covers important combinations without disproportionate time and cost.
Why testing in one browser is not enough
Modern browsers use different rendering engines and handle some web features differently. A problem can appear in a form, page layout, file handling, or payment. If the team develops primarily in Chrome, a defect visible only to Safari or Firefox users may go unnoticed.
The opposite extreme is trying to cover every combination of browser, version, operating system, and screen size. The test matrix grows quickly, results arrive late, and the team maintains configurations that almost nobody uses.
How to choose appropriate coverage
1. Combine data and commitments
Start with traffic analytics, customer-support reports, and the browsers the product officially supports. For a public service, also consider users whom analytics may not capture accurately. If you have contractually agreed to support a specific platform, it belongs in the matrix even if it represents a smaller share of traffic.
2. Divide tests by risk
- Primary configuration: a broader suite can run in it on every change.
- Other important browsers: regularly verify critical journeys in them, such as sign-in, ordering, and payment.
- Targeted combinations: add them for features where you already know about differences or that use sensitive web APIs.
This division gives important journeys broader coverage without multiplying every edge-case test by the number of browsers.
3. Distinguish a browser from its engine
Playwright can run the same test in the Chromium, Firefox, and WebKit engines and also supports the branded Chrome and Edge browsers. WebKit is useful for finding some issues relevant to Safari, but it is not the branded Safari browser itself. If you need confidence in a specific version of Safari and its operating system, add a test in a real, compatible environment.
4. Update the matrix regularly
Browser shares and versions change. At least after a significant change in the product or user base, review your analytics, supported platforms, and test-tool version. Deliberately remove a configuration that is no longer needed and document the reason.
What to watch out for
An emulated screen size is not a complete substitute for a real mobile device. It does not verify every difference in touch interaction, the system keyboard, or performance. Depending on the risk, supplement critical mobile journeys with a check on a physical device.
Record a concrete matrix and release rules
This model illustrates coverage grouping, rather than a browser list for every website. Replace it with combinations justified by your data and support commitments:
| Group | Scope | Trigger |
|---|---|---|
| Main desktop configuration | Broader functional suite | Relevant changes. |
| Other supported browsers | Login, basket, checkout and high-risk features | Before release and when affected. |
| Physical mobile device and specific environment | Controls, keyboard, payment return and known issues | According to risk and the agreed plan. |
Record browser name and version, OS, physical device or emulation, owner and review date for each row. Define release-blocking failures and who assesses residual risk. Communicate support scope to customer support too. MDN describes selection by target audience and support level.
A “mobile Safari” configuration name does not establish that a test ran on an iPhone. Check the actual engine and environment. Playwright emulation sets device properties, but changing userAgent alone does not replace the rendering engine with another browser.
Verify more than opening a page
Exercise forms, validation and operation outcomes on critical journeys. Verify the authenticated session after login and the correct item and total during purchase. Depending on the feature, include files, returns from external services and error handling.
Also check keyboard access, visible focus, menu opening and closing, and button availability on a small screen. A physical phone can expose controls hidden by the system keyboard that desktop viewport width alone does not reveal.
The same outcome does not require identical pixels. Distinguish acceptable rendering differences from unreadable text or unusable forms. Compare matching environments and approved references in visual checks.
Investigate one failing combination
Record application version, exact browser, OS, execution mode, inputs and last successful step. Reproduce in the same environment, then compare another supported configuration to distinguish shared failures from platform differences. For automation, verify required browser binaries and dependencies too.
Shared test-data failure does not prove a browser defect. Concurrent runs need separate accounts or records where they change state. After repair, check the original failing combination and important regression journeys in other environments.
Reports must show what actually ran. A skipped test or unavailable device is not successful coverage. State the reason, replacement verification and remaining limitation before the release decision.
What you gain
- Coverage reflects your customers and declared support.
- You increase the chance of detecting critical defects in another browser.
- The test suite does not grow merely because another combination exists.
- You can explain why each configuration remains in the matrix.
Next step
Review browser shares over the past few months and identify the three most important user journeys. If you would like to turn this data into a practical test matrix, contact us. We will propose the coverage and run frequency according to your product’s risk.