|
| 1 | +steps: |
| 2 | + - echo: Launching Expo Example |
| 3 | + - launch: com.example.ExpoExample |
| 4 | + - await: { visible: { text: "Empty Example" }, timeout: 15000 } |
| 5 | + - echo: "On the Home list, search for the shared value example" |
| 6 | + - type: { text: "shared", into: { id: "search-examples" } } |
| 7 | + - echo: "Tap the example to open it" |
| 8 | + - tap: { text: "Shared Value" } |
| 9 | + - await: { visible: { id: "shared-value-box" } } |
| 10 | + - await: { idle: true } |
| 11 | + |
| 12 | + - echo: "Clear console" |
| 13 | + - await: { visible: { id: "open-console-button" } } |
| 14 | + - tap: { id: "open-console-button" } |
| 15 | + - await: { visible: { id: "clear-console-button" } } |
| 16 | + - tap: { id: "clear-console-button" } |
| 17 | + - tap: { id: "close-console-button" } |
| 18 | + - await: { idle: true } |
| 19 | + |
| 20 | + - echo: "The gesture starts configured for a single tap, so one tap activates it" |
| 21 | + - tap: { id: "shared-value-box" } |
| 22 | + - tap: { id: "open-console-button" } |
| 23 | + - await: { idle: true } |
| 24 | + - await: { visible: { id: "close-console-button" } } |
| 25 | + - assert: { visible: { text: "1. onBegin" } } |
| 26 | + - assert: { visible: { text: "2. onActivate" } } |
| 27 | + - assert: { visible: { text: "3. onDeactivate" } } |
| 28 | + - assert: { visible: { text: "4. onFinalize" } } |
| 29 | + |
| 30 | + - echo: "Clear console" |
| 31 | + - tap: { id: "clear-console-button" } |
| 32 | + - tap: { id: "close-console-button" } |
| 33 | + - await: { idle: true } |
| 34 | + |
| 35 | + - echo: "Raise the shared value, then check that a single tap no longer activates" |
| 36 | + - tap: { id: "increment-taps-button" } |
| 37 | + - tap: { id: "shared-value-box" } |
| 38 | + - tap: { id: "open-console-button" } |
| 39 | + - await: { idle: true } |
| 40 | + - await: { visible: { id: "close-console-button" } } |
| 41 | + - assert: { visible: { text: "5. Required taps: 2" } } |
| 42 | + - assert: { visible: { text: "6. onBegin" } } |
| 43 | + - assert: { visible: { text: "7. onFinalize" } } |
| 44 | + - assert: { hidden: { text: "onActivate" } } |
| 45 | + |
| 46 | + - echo: "Clear console" |
| 47 | + - tap: { id: "clear-console-button" } |
| 48 | + - tap: { id: "close-console-button" } |
| 49 | + - await: { idle: true } |
| 50 | + |
| 51 | + - echo: "A double tap matches the new configuration and activates the gesture" |
| 52 | + - tap: { on: { id: "shared-value-box" }, times: 2 } |
| 53 | + - tap: { id: "open-console-button" } |
| 54 | + - await: { idle: true } |
| 55 | + - await: { visible: { id: "close-console-button" } } |
| 56 | + - assert: { visible: { text: "8. onBegin" } } |
| 57 | + - assert: { visible: { text: "9. onActivate" } } |
| 58 | + - assert: { visible: { text: "10. onDeactivate" } } |
| 59 | + - assert: { visible: { text: "11. onFinalize" } } |
0 commit comments