eletrotupi / tcc/ frontend/e2e/helpers/_login.yaml07f25fea411eefed07a4bbf7454f3bc9f9c6c347
1.4 KB | 42 lines Raw
1
appId: com.eletrotupi.orbit
2
---
3
# Self-contained login: every flow starts from a clean, logged-out app so the
4
# suite is order-independent (Maestro runs the flows in an arbitrary order)
5
- clearState
6
- openLink: orbit://expo-development-client/?url=http%3A%2F%2F${HOST_IP}%3A${PORT}
7
# clearState resets expo-dev-client itself, so its first-run overlays can show
8
# up before the JS app loads: the "developer menu" intro ("Continue") and then
9
# the dev-menu panel ("Close"). Both are dev tooling, not app UI, two more
10
# unavoidable copy matches; both optional so they cost nothing when absent
11
- waitForAnimationToEnd:
12
    timeout: 5000
13
- tapOn:
14
    text: "^Continue$"
15
    optional: true
16
- tapOn:
17
    text: "^Close$"
18
    optional: true
19
- extendedWaitUntil:
20
    visible:
21
      id: text-welcome
22
    timeout: 90000
23
- tapOn:
24
    id: input-email
25
- inputText: ${E2E_EMAIL}
26
- tapOn:
27
    id: input-password
28
- inputText: ${E2E_PASSWORD}
29
# The soft keyboard covers the login button; without this the tap misses
30
- hideKeyboard
31
- tapOn:
32
    id: button-login
33
# clearState resets runtime permissions, so the app asks for notifications
34
# after login. Allow it, otherwise the system dialog blocks the next step.
35
# System dialog, so no testID; the AOSP resource-id is the stable selector
36
- tapOn:
37
    id: com.android.permissioncontroller:id/permission_allow_button
38
    optional: true
39
- extendedWaitUntil:
40
    visible:
41
      id: text-welcome-quick-register
42
    timeout: 15000