---
title: "How we raised mobile end-to-end test stability to 98%"
description: "Shopify rebuilt its mobile end-to-end test framework as an opinionated wrapper over Appium, raising test stability from 50% to 98% and returning the suite to blocking PR checks."
url: "https://swe.quest/articles/how-we-raised-mobile-end-to-end-test-stability-to-98-ca68fcd3c9f171ff"
canonical: "https://shopify.engineering/mobile-e2e-testing"
source: "Shopify Engineering"
published: "2026-08-12"
difficulty: "medium"
kind: "Case study"
reading_minutes: 6
tags: ["testing","mobile","ci-cd","computer-vision","react"]
---

# How we raised mobile end-to-end test stability to 98%

A post on [Shopify Engineering](https://swe.quest/sources/shopify.md), published 2026-08-12, 6 min read, Case study. Original: [https://shopify.engineering/mobile-e2e-testing](https://shopify.engineering/mobile-e2e-testing)

## Summary

Shopify rebuilt its mobile end-to-end test framework as an opinionated wrapper over Appium, raising test stability from 50% to 98% and returning the suite to blocking PR checks. The wrapper exposes a small builder-style API where every action must carry an assertion that is validated as false before the step and true after. Escape hatches like custom timeouts and Test IDs are prefixed UNSAFE\_. Elements are located visually rather than through the view hierarchy: PaddleOCR finds text, and OpenCV matches grayscale Polaris SVG icons, including color-inverted variants and multiple sizes, using adjacency to tell duplicates apart. Annotated run videos, a single CLI for local and remote device-farm runs, and a pre-promotion gate that reruns new tests before admitting them to CI round out the approach.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [Mobile](https://swe.quest/tags/mobile.md) (Web & mobile)
- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)
- [Computer vision](https://swe.quest/tags/computer-vision.md) (AI & ML)
- [React](https://swe.quest/tags/react.md) (Web & mobile)

## Prerequisites

- end-to-end testing ([easy posts on Testing](https://swe.quest/tags/testing.md?difficulty=easy))
- Appium
- mobile CI ([easy posts on Mobile](https://swe.quest/tags/mobile.md?difficulty=easy))

## Keywords

Appium, WebdriverIO, PaddleOCR, OpenCV, React Native, Polaris, Shopify

## Related posts

- [Achieving Test Reliability for Native E2E Testing: Beyond Fixing Broken Tests](https://swe.quest/articles/achieving-test-reliability-for-native-e2e-testing-beyond-fixing-broken-tests-4213c64569bcb860.md): Docker · 2026-03-13 · Medium · 8 min read · Testing, Mobile, CI/CD, Containers
  Patching flaky native E2E tests one by one failed to improve reliability over more than a year.
- [Introducing native E2E testing: Learnings from the Senior Engineering Program for Women](https://swe.quest/articles/introducing-native-e2e-testing-learnings-from-the-senior-engineering-program-37b92032e83ba596.md): Klarna Engineering · 2023-09-08 · Medium · 8 min read · Testing, Mobile, TypeScript, Engineering culture
  Klarna introduced native end-to-end testing for iOS and Android mini versions of its app, aiming to replace much of the weekly manual release testing with automated feature regression tests in CI pipelines.
- [Handling Flaky Tests at Scale: Auto Detection & Suppression](https://swe.quest/articles/handling-flaky-tests-at-scale-auto-detection-suppression-77980e444545e1fa.md): Slack Engineering · 2022-04-05 · Medium · 14 min read · Testing, CI/CD, Mobile, Developer productivity
  Slack's mobile DevXp team cut CI test job failures from 57% of failing builds to under 5% by automating flaky test detection and suppression across 27,000+ iOS and Android tests.
- [Artsy Mobile 2025 Wrapped](https://swe.quest/articles/artsy-mobile-2025-wrapped-2eb10f2f6653645f.md): Artsy Engineering · 2026-01-09 · Medium · 7 min read · Mobile, React, Performance engineering, CI/CD, Refactoring & migrations
  Artsy's React Native apps (Eigen, Folio, Palette Mobile) adopted Expo and over-the-air updates after VS App Center's retirement, and all three moved to the new architecture.
- [How GitHub reduced testing time for iOS apps with new runner features](https://swe.quest/articles/how-github-reduced-testing-time-for-ios-apps-with-new-runner-features-6d60c9cbd2f8be42.md): GitHub Engineering · 2024-06-03 · Medium · 4 min read · CI/CD, Mobile, Performance engineering, Developer productivity
  GitHub's iOS team cut CI testing time by 60%, from 38 to 15 minutes, by moving to Apple silicon M1 macOS runners (macos-14-xlarge) and splitting a single monolithic build-and-test job into per-module jobs across roughly 60 first-party modules.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
