32 lines
922 B
YAML
32 lines
922 B
YAML
# add-admin.yaml: create a staff admin and verify the card appears.
|
|
# Args: ADMIN_NAME, ADMIN_PASSWORD, ADMIN_ROLE, ADMIN_REGION.
|
|
# Role/region are native <select>s; select by focusing the id then typing the
|
|
# option label (Maestro's synthetic-option tap collides across selects).
|
|
url: http://localhost:4175/admins/new
|
|
env:
|
|
ADMIN_NAME: ${ADMIN_NAME || ""}
|
|
ADMIN_PASSWORD: ${ADMIN_PASSWORD || ""}
|
|
ADMIN_ROLE: ${ADMIN_ROLE || "admin"}
|
|
ADMIN_REGION: ${ADMIN_REGION || ""}
|
|
---
|
|
- openLink: http://localhost:4175/admins/new
|
|
- extendedWaitUntil:
|
|
visible: Region
|
|
timeout: 30000
|
|
- tapOn:
|
|
id: admin-name
|
|
- inputText: ${ADMIN_NAME}
|
|
- tapOn:
|
|
id: admin-password
|
|
- inputText: ${ADMIN_PASSWORD}
|
|
- tapOn:
|
|
id: admin-role
|
|
- inputText: ${ADMIN_ROLE}
|
|
- tapOn:
|
|
id: admin-region
|
|
- inputText: ${ADMIN_REGION}
|
|
- tapOn:
|
|
id: create-admin-submit
|
|
- extendedWaitUntil:
|
|
visible: ${ADMIN_NAME}
|
|
timeout: 60000
|