QA Interview Hub · Knowledge base · Quizzes · Українська

QA Fundamentals › Web and client-server

How do you approach cross-browser and responsive testing?

Cross-browser testing is built as a matrix driven by risk and user analytics, not as everything everywhere. Configurations are tiered: the most common get a full run, the rest only critical scenarios, and the matrix is updated from new data and bugs. The checks cover layout at breakpoints, forms, formats and touch. DevTools emulation stays on Chromium, so Safari and the on-screen keyboard are checked on real devices or in the cloud.

QA Fundamentals · Web and client-server

The feature works in Chrome, but on an iPhone the button cannot be tapped. Where do you start the test matrix?

The release went out, everything was checked in Chrome on a laptop. An hour later support writes: on an iPhone the "Date of birth" field does not open and the "Pay" button is covered by the keyboard. Checking "everything everywhere" is impossible: there are hundreds of combinations of browsers, versions, operating systems and screen sizes. This lesson is about why browsers behave differently, how to build from hundreds of combinations a matrix that can actually be run, and what to check in it.

How it works and why. The difference comes from three causes. First, engines: Chrome and Edge run on Blink, Safari on WebKit, Firefox on Gecko, and each implements web standards at its own pace and with its own quirks. On iOS most browsers also run on WebKit, so "Chrome on iPhone" often behaves like Safari. Second, devices: screen size and density, touch instead of a mouse, a virtual keyboard, performance. Third, operating systems: font rendering, native widgets (a date or file picker), system language and zoom settings. Responsiveness is a separate dimension: the layout changes at breakpoints (by window width), and the page must stay usable at every size.

Since everything cannot be covered, the matrix is built by risk and data. The source of truth here is the analytics of real users and the requirements: which support is promised officially (often it is a list in the documentation or in the build settings). Configurations are in essence equivalence classes: if two browsers on one engine and a similar screen behave the same, one representative is enough.

Coverage levels

Level 1: a full passthe main browsers and devices by analyticsLevel 2: critical scenariossign-in, search, payment, key formsLevel 3: on demandrare configurations, after bugs from them
Figure 1. The lower the level, the less effort. A configuration lands on a level by the share of users and the cost of a mistake, not by what is more convenient for the tester.

Example: from "test everything" to a matrix. The initial decision "Chrome, Firefox, Safari, Edge and ten devices" says nothing about what to check and how deeply. After analysing analytics a matrix with levels appears (the numbers are illustrative):

Configuration           Share*  Level   What we check
Chrome, Windows          42%    1       a full pass
Safari, iPhone (2 sizes) 25%    1       a full pass, keyboard
Chrome, Android         18%     2       critical scenarios
Edge, Windows             8%    2       critical scenarios
Firefox, Windows          5%    3       on demand
* illustrative numbers from analytics, for the example

Now it is clear why iPhone gets a full pass (a quarter of users) and Firefox stays on level 3. The matrix is not frozen: if after a release bugs appeared in Firefox or its share grew, the configuration is raised to a higher level. What is checked on each configuration:

  • The layout at breakpoints: whether text sticks out, whether elements overlap, whether menus and buttons are reachable.
  • Forms: date and file pickers, autofill, the keyboard type for a field (number, email), whether the keyboard covers the button.
  • Formats: date, number, currency and time zone by the browser's language and region.
  • Touch: whether elements that depend on hover work, whether the targets are big enough to tap.
  • Screen orientation, zoom and scrolling.
  • Performance on a weak device and a slow network.

Limits and alternatives. Emulation in DevTools changes the screen size, the user agent, touch and network speed, but the engine stays Chromium. So it catches layout problems at different widths, but will not show Safari bugs or a real virtual keyboard: those need real devices or cloud farms (BrowserStack and similar). Automated tests allow running one scenario on several engines: in Playwright these are the Chromium, Firefox and WebKit projects. The WebKit build is close to Safari but not identical, so for a critical risk a check on a real iPhone remains. Visual regression tests catch a layout shift between builds, but do not replace a human look at a new design. Finally, the matrix depends on the product: for a bank's internal application the browser requirements are set by the company's IT policy, and the matrix may consist of two items.

Common mistakes.

  • Building a matrix "from the head": it reflects the habits of the team, not of the users.
  • Testing at resized windows of desktop Chrome and calling it "mobile testing".
  • Chasing every browser version: current ones and those that analytics shows in real use are enough.
  • Checking only screen width and forgetting the keyboard, touch, orientation and formats.
  • Not updating the matrix after a release, when new data about users and bugs has appeared.

Check yourself

Analytics shows: 60% of users on Chrome, 30% on Safari (iPhone), 5% on Firefox. How do you distribute the effort and why?

Answer

Chrome and Safari on iPhone go to level 1: a full pass, because they are the majority of users and different engines. Firefox goes to level 2 or 3: critical scenarios or on demand. A separate question is whether Firefox is more critical for the particular product (for example, a corporate requirement): that must be decided by the requirement, not only by the percentage.

Why is iPhone emulation in DevTools not enough to check the keyboard and the date picker?

Answer

Emulation changes the screen size and touch, but it runs on Chromium. The virtual keyboard, the native date picker and the behaviour of WebKit on iOS are absent from it. This is checked on a real device or in a cloud farm.

What would make you raise Firefox from level 3 to a higher one?

Answer

Growth of its share in analytics, repeated bugs exactly in Firefox, a customer requirement or a new feature that relies on capabilities implemented differently there. The matrix is updated by data and does not stay forever.

In an interview. Junior: I build a matrix of browsers and devices from analytics, not everything at random. The most popular configurations I test fully, the rest only critical scenarios. I check the layout at breakpoints, forms, date and number formats, and part of it on real devices, because emulation does not show everything. Middle/Senior: A matrix is equivalence classes by risk: the engine (Blink, WebKit, Gecko), the device class and screen size, and the weight is set by the share of users and the support requirements. Level one gets a full pass, level two critical scenarios, level three I touch on demand and raise it by new data or bugs. I treat DevTools emulation as a quick layout filter, and I check Safari, the keyboard and touch on real devices or in the cloud, and where possible I run automated tests on three engines.

More articles in this chapter