Overview
Mobile tests are authored as natural-language steps. In addition to the usual taps, types, and scrolls, Spur recognizes a set of specialized mobile commands for controlling the app lifecycle, simulating device gestures, and asserting on toast messages. You write them as ordinary steps — Spur maps your phrasing to the right action.| Command | What it does | iOS | Android |
|---|---|---|---|
| Activate App | Bring the app under test back to the foreground | ✅ | ✅ |
| Restart App | Terminate and cold-relaunch the app (or another app) | ✅ | ✅ |
| Shake Device | Simulate a physical device shake | ❌ | ✅ |
| Flip Device | Emulate flipping the device face-up ↔ face-down | ❌ | ✅ |
| Expect Toast / Expect No Toast | Assert that a transient toast message did (or did not) appear | ✅ | ✅ |
These commands apply only to mobile tests (iOS and Android). They have no effect
on web tests.
