-
-
Notifications
You must be signed in to change notification settings - Fork 360
Expand file tree
/
Copy pathcaptureFlow-android.yml
More file actions
57 lines (46 loc) · 1.39 KB
/
captureFlow-android.yml
File metadata and controls
57 lines (46 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# This is a happy path test for the feedback widget on Android.
# It verifies that the feedback form can be opened, filled out, and submitted successfully
appId: ${APP_ID}
jsEngine: graaljs
---
# Show feedback button
- tapOn: 'Feedback'
# Wait for feedback widget button to appear, then open it
- extendedWaitUntil:
visible: 'Report a Bug'
timeout: 10_000
- tapOn: 'Report a Bug'
# Assert that the feedback form is visible
- extendedWaitUntil:
visible: 'Report a Bug'
timeout: 5_000
# Fill out name field
- tapOn: 'Your Name'
- inputText: 'John Doe'
# Fill out email field
- tapOn: 'your.email@example.org'
- inputText: 'test@email.com'
# Fill out message field
- tapOn: "What's the bug? What did you expect?"
- inputText: 'This is a test feedback message with a screenshot from CI e2e tests'
# Take screenshot
- scrollUntilVisible:
element:
text: 'Take a screenshot'
- tapOn: 'Take a screenshot'
- tapOn: 'Take Screenshot'
# Assert that the feedback form is visible
- extendedWaitUntil:
visible: 'Report a Bug'
timeout: 5_000
# Hide keyboard by tapping on a non-tappable element
- tapOn: 'Email'
# Submit feedback
- scrollUntilVisible:
element:
text: 'Send Bug Report'
- tapOn: 'Send Bug Report'
- assertVisible: 'Thank you for your report!'
- tapOn: 'OK'
# Verify feedback form is closed and the home screen is visible
- assertVisible: 'Welcome to React Native'