Demo
GUIDE

Cases 85–93 · Mobile

2 MIN READ

Case 85 — Complete a mobile text field

gherkin
When I tap the "Username" field
And I fill [$.testdata.mobile.username] in the focused username field
And I hide the keyboard
Then the "Username" field should contain [$.testdata.mobile.username]
And the "Continue" button should be visible

Name keyboard handling when it can cover the next control.

Case 86 — Set a mobile switch

gherkin
When I set the "Push Notifications" switch to On
Then the "Push Notifications" switch should show On

Case 87 — Handle a mobile permission dialog

gherkin
When the system notification permission dialog appears
And I tap "Allow"
Then the permission dialog should close
And the app should show the notification settings screen

Name the system dialog and exact choice. Do not dismiss unspecified popups.

Case 88 — Select from a mobile picker

gherkin
When I open the "Country" picker
And I select "United Kingdom"
Then the "Country" field should show "United Kingdom"

Case 89 — Swipe to a mobile destination

gherkin
When I swipe left on the onboarding carousel until the "Get Started" page is visible
Then the "Get Started" button should be visible

The destination, not the number of swipes, is the primary condition.

Case 90 — Long-press a mobile item

gherkin
When I long-press the conversation named [$.testdata.mobile.conversation]
Then the conversation context menu should appear
And it should contain "Archive"

Case 91 — Drag a mobile item

gherkin
When I drag the task "Review Contract" from "To Do" to "In Progress"
Then the task should appear under "In Progress"
And it should no longer appear under "To Do"

Case 92 — Switch between native app and webview

gherkin
When I tap "Sign in with Salesforce" in the native app
And I wait until the Salesforce sign-in webview appears
And I complete sign-in in the webview
Then I should return to the native app
And the app home screen should show the signed-in user

Case 93 — Open a push notification

gherkin
When I wait up to 30 seconds for a notification containing [$.testdata.mobile.message]
And I tap that notification
Then the app should open the "Conversation" screen
And the screen should contain [$.testdata.mobile.message]