about summary refs log tree commit diff
path: root/__e2e__/flows/profile-screen-edit.yml
blob: f60ca01b426026f0c81e160eb016468431adfde9 (plain) (blame)
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
appId: xyz.blueskyweb.app
---
- runScript:
    file: ../setupServer.js
    env:
        SERVER_PATH: "?users&posts&feeds"
- runFlow:
    file: ../setupApp.yml
- tapOn:
    id: "e2eSignInAlice"


# Navigate to my profile
- extendedWaitUntil:
    visible:
        id: "bottomBarSearchBtn"
- tapOn:
    id: "bottomBarProfileBtn"

# Open and close edit profile modal
- tapOn:
    id: "profileHeaderEditProfileButton"
- assertVisible:
    id: "editProfileModal"
- tapOn:
    id: "editProfileCancelBtn"
- assertNotVisible:
    id: "editProfileModal"

# Edit display name and description via the edit profile modal
- tapOn:
    id: "profileHeaderEditProfileButton"
- assertVisible:
    id: "editProfileModal"
- tapOn:
    id: "editProfileDisplayNameInput"
- eraseText
- inputText: "Alicia"
- tapOn:
    id: "editProfileDescriptionInput"
- eraseText
- inputText: "One cool hacker"
- tapOn: "Description"
- tapOn:
    id: "editProfileSaveBtn"
- assertNotVisible:
    id: "editProfileModal"
- assertVisible: "Alicia"
- assertVisible: "One cool hacker"

# Remove display name and description via the edit profile modal
- tapOn:
    id: "profileHeaderEditProfileButton"
- assertVisible:
    id: "editProfileModal"
- tapOn:
    id: "editProfileDisplayNameInput"
- eraseText
- tapOn:
    id: "editProfileDescriptionInput"
- eraseText
- tapOn: "Description"
- tapOn:
    id: "editProfileSaveBtn"
- assertNotVisible:
    id: "editProfileModal"
- assertVisible: "alice.test"
- assertNotVisible: "One cool hacker"

# Set avi and banner via the edit profile modal
- assertVisible:
    id: "userBannerFallback"
- tapOn:
    id: "profileHeaderEditProfileButton"
- assertVisible:
    id: "editProfileModal"
- tapOn:
    id: "changeBannerBtn"
- tapOn: "Upload from Library"
- waitForAnimationToEnd
- tapOn: "Done"
- waitForAnimationToEnd
- tapOn:
    id: "changeAvatarBtn"
- tapOn: "Upload from Library"
- waitForAnimationToEnd
- tapOn: "Done"
- waitForAnimationToEnd
- tapOn:
    id: "editProfileSaveBtn"
- assertNotVisible:
    id: "editProfileModal"
- assertVisible:
    id: "userBannerImage"

# # Remove avi and banner via the edit profile modal
- tapOn:
    id: "profileHeaderEditProfileButton"
- assertVisible:
    id: "editProfileModal"
- tapOn:
    id: "changeBannerBtn"
- tapOn: "Remove Banner"
- tapOn:
    id: "changeAvatarBtn"
- tapOn: "Remove Avatar"
- tapOn:
    id: "editProfileSaveBtn"
- assertNotVisible:
    id: "editProfileModal"
- assertVisible:
    id: "userBannerFallback"