appId: ${APP_ID}
tags:
- profile
- persistence
---
# 05 - Profile: edit the display name, open / close settings, and the name survives a restart.
- runFlow:
file: "../subflows/bootstrap-app.yaml"
- tapOn:
id: "tab-button-profile"
- extendedWaitUntil:
visible:
id: "profile-name-pill"
timeout: 15000
# Edit name.
- tapOn:
id: "profile-name-pill"
# The dialog's field is autofocused but, with the keyboard up, the dialog is not in the accessibility
# tree: type into the focused field and submit with the keyboard's Done (same as the OK button).
- waitForAnimationToEnd:
timeout: 5000
- eraseText: 40
- inputText: "Maestro"
- pressKey: Enter
- extendedWaitUntil:
visible: "Maestro"
timeout: 10000
# Settings opens and closes.
- tapOn:
id: "profile-settings-gear"
- assertVisible: "GENERAL"
# The close button (top-right glass X) is not exposed to automation: tap it by position.
- tapOn:
point: "96%,9%"
- assertNotVisible: "GENERAL"
# Cold restart: the name is persisted.
- runFlow:
file: "../subflows/bootstrap-app.yaml"
- tapOn:
id: "tab-button-profile"
- extendedWaitUntil:
visible: "Maestro"
timeout: 15000