Skip to main content
Optional generic cucumber steps for Quiesco, in Chinese, Japanese and English.
Operation scripts, not requirements. These steps describe taps and texts (“tap login-button”), not what the user wants to achieve. Use them while prototyping or exploring an app. A real project writes its own steps in the language of the business (“When the user logs in as …”) on top of this.app — or a driver of its own (see the driver pattern) — so the features keep describing requirements when the UI changes.

Use

@quiesco/cucumber/register must be imported too (it provides this.app). The steps are registered with cucumber’s keyword-agnostic defineStep, so they work after any keyword (当 / もし / When …) and in feature files of any # language:. A quoted target is a testID; the “text” variants match the displayed text instead. Every step waits for the app to become idle like any other Quiesco call — no sleeps.

Steps

pressBack is not available on iOS (no back button); Quiesco reports ACTION_NOT_SUPPORTED there. goBack works on every platform: on iOS it taps the navigation bar’s back button, or swipes from the left edge. Some steps take a word instead of a quoted value (any of the languages’ words works in every language): An unknown word fails the step with the list of accepted ones. Device and system steps (background, orientation, offline, grantPermission, allowDialog, shake, …) call this.app.device; where a platform cannot do something Quiesco reports ACTION_NOT_SUPPORTED with the reason (platform differences).