Mobile Testing / Scenario

The Sleep-Riddled Suite

Inherited: one Appium checkout test, three sleeps, two hardcoded taps, one indexed XPath. Passes on the Pixel in the drawer, fails everywhere else.

Difficulty
Hard
Format
Scenario
Points
200
Estimate
14 min

// MISSION BRIEF

Your Mission

A departed contractor left behind the team's only mobile checkout test. It passes on his old Pixel 7 and fails on every other device in the lab, differently each time.

Read the code and the failure log, then perform the autopsy: every root cause, and the modern replacement for each. Decisions are weighted; the full diagnosis carries the most.

// FIRST CONTACT

Battle teaser

First artifact

checkout.test.js (WebdriverIO + Appium)

Identify every root cause in this test. (Select all that apply.)

  1. AUsing an accessibility id (~checkout), which is unreliable across devices
  2. BFixed pauses that bet against variable device/app speed instead of waiting on conditions
  3. CAn index-based XPath whose meaning changes with layout and content
  4. DA tap at absolute pixel coordinates that only exist on one screen geometry
Answers, scoring, hints, and the full battle stay sealed.

// SKILL TAGS

appiumflakelocatorsgestures