-
-
Notifications
You must be signed in to change notification settings - Fork 344
/
Copy pathfeedback.yml
94 lines (83 loc) · 1.96 KB
/
feedback.yml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
appId: ${APP_ID}
jsEngine: graaljs
---
- runFlow: utils/launchTestAppClear.yml
# Open feedback widget
- tapOn: 'Feedback'
# Assert that all feedback form elements are visible
- extendedWaitUntil:
visible:
id: 'sentry-logo'
timeout: 1_000
- assertVisible:
id: 'form-title'
- assertVisible:
id: 'name-label'
- assertVisible:
id: 'name-input'
- assertVisible:
id: 'email-label'
- assertVisible:
id: 'email-input'
- assertVisible:
id: 'message-label'
- assertVisible:
id: 'message-input'
- assertVisible:
id: 'submit-button'
- assertVisible:
id: 'cancel-button'
# Close and repopen feedback widget
- tapOn:
id: 'cancel-button'
- tapOn: 'Feedback'
- extendedWaitUntil:
visible:
id: 'sentry-logo'
timeout: 1_000
# Fill out name field
- tapOn:
id: 'name-input'
- inputText: 'John Doe'
# Fill out email field with a non valid email
- tapOn:
id: 'email-input'
- inputText: 'test invalid email'
# Try to submit feedback and verify required field validation error
- hideKeyboard
- scrollUntilVisible:
element:
id: 'submit-button'
- tapOn:
id: 'submit-button'
- assertVisible: 'Please fill out all required fields.'
- tapOn: 'OK'
# Fill out feedback form required message field
- tapOn:
id: 'message-input'
- inputText: 'This is a test feedback message from CI e2e tests'
# Try to submit feedback and verify email validation error
- hideKeyboard
- scrollUntilVisible:
element:
id: 'submit-button'
- tapOn:
id: 'submit-button'
- assertVisible: 'Please enter a valid email address.'
- tapOn: 'OK'
# Fill out email field with a valid email
- tapOn:
id: 'email-input'
- eraseText
- inputText: '[email protected]'
# Submit feedback
- hideKeyboard
- scrollUntilVisible:
element:
id: 'submit-button'
- tapOn:
id: 'submit-button'
- assertVisible: 'Thank you for your report!'
- tapOn: 'OK'
# Verify feedback form is closed and the home screen is visible
- assertVisible: 'Welcome to React Native'